gst-plugins-base: playsink: Try include 'pitch', if no other sink is provided
Stefan Kost
ensonic at hora-obscura.de
Tue Aug 30 04:54:54 PDT 2011
On 08/30/11 10:23, Jan Schmidt wrote:
> Module: gst-plugins-base
> Branch: master
> Commit: 105814e2c78f9867c61531b9e8166e4ae994296f
> URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=105814e2c78f9867c61531b9e8166e4ae994296f
>
> Author: Jan Schmidt <thaytan at noraisin.net>
> Date: Tue Aug 30 18:21:31 2011 +1000
>
> playsink: Try include 'pitch', if no other sink is provided
>
> As a default, try the pipeline 'pitch ! audioconvert ! autoaudiosink'
> before trying plain autoaudiosink
I am curious. Why?
Stefan
> ---
>
> gst/playback/gstplaysink.c | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c
> index 01f00a5..cd92c33 100644
> --- a/gst/playback/gstplaysink.c
> +++ b/gst/playback/gstplaysink.c
> @@ -1665,6 +1665,14 @@ gen_audio_chain (GstPlaySink * playsink, gboolean raw)
> } else {
> /* only try fallback if no specific sink was chosen */
> if (chain->sink == NULL) {
> + GST_DEBUG_OBJECT (playsink,
> + "trying pitch ! audioconvert ! autoaudiosink");
> + elem =
> + gst_parse_bin_from_description
> + ("pitch ! audioconvert ! autoaudiosink", TRUE, NULL);
> + chain->sink = try_element (playsink, elem, TRUE);
> + }
> + if (chain->sink == NULL) {
> GST_DEBUG_OBJECT (playsink, "trying autoaudiosink");
> elem = gst_element_factory_make ("autoaudiosink", "audiosink");
> chain->sink = try_element (playsink, elem, TRUE);
>
> _______________________________________________
> gstreamer-commits mailing list
> gstreamer-commits at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-commits
More information about the gstreamer-devel
mailing list