diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-11-25 15:39:44 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-11-25 15:53:04 +0000 |
commit | 5a1c788d9a58a032442ea09f091306640a0a7069 (patch) | |
tree | 4c2ad592daee6a8e1fd5f8e10e2bcb4022f42e55 | |
parent | 23da3639f00949921aae27e17f4ad7eebe78aa45 (diff) |
docs: improve GstMixer and GstTuner docs
Mention that elements implementing GstMixer and GstTuner need to be
in the right state before they can be used. Also mention GLib
functions for converting filenames to and from URIs.
Fixes #602877.
-rw-r--r-- | docs/manual/advanced-interfaces.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/manual/advanced-interfaces.xml b/docs/manual/advanced-interfaces.xml index 1ef791b811..a17ea5e4d9 100644 --- a/docs/manual/advanced-interfaces.xml +++ b/docs/manual/advanced-interfaces.xml @@ -39,6 +39,11 @@ type being either <classname>GST_URI_SRC</classname> for a source element, or <classname>GST_URI_SINK</classname> for a sink element. </para> + <para> + You can convert filenames to and from URIs using GLib's + <function>g_filename_to_uri ()</function> and + <function>g_uri_to_filename ()</function>. + </para> </sect1> <sect1 id="section-interfaces-mixer"> @@ -61,6 +66,22 @@ (osssrc, osssink, ossmixer) and the ALSA plugins (alsasrc, alsasink and alsamixer). </para> + <para> + You should not use this interface for volume control in a playback + application. Either use a <classname>volume</classname> element or use + <classname>playbin</classname>'s <quote>volume</quote> property, or use + the audiosink's <quote>volume</quote> property (if it has one). + </para> + <note> + <para> + In order for the <classname>GstMixer</classname> interface to be + usable, the element implementing it needs to be in the right state, + so that the underlying mixer device is open. This usually means the + element needs to be at least in <classname>GST_STATE_READY</classname> + before you can use this interface. You will get confusing warnings + if the element is not in the right state when the interface is used. + </para> + </note> </sect1> <sect1 id="section-interfaces-tuner"> @@ -81,6 +102,16 @@ This interface is currently only implemented by the Video4linux and Video4linux2 elements. </para> + <note> + <para> + In order for the <classname>GstTuner</classname> interface to be + usable, the element implementing it needs to be in the right state, + so that the underlying device is open. This usually means the + element needs to be at least in <classname>GST_STATE_READY</classname> + before you can use this interface. You will get confusing warnings + if the element is not in the right state when the interface is used. + </para> + </note> </sect1> <sect1 id="section-interfaces-colorbalance"> |