From 105814e2c78f9867c61531b9e8166e4ae994296f Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Tue, 30 Aug 2011 18:21:31 +1000 Subject: [PATCH] playsink: Try include 'pitch', if no other sink is provided As a default, try the pipeline 'pitch ! audioconvert ! autoaudiosink' before trying plain autoaudiosink --- gst/playback/gstplaysink.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 01f00a5cd3..cd92c332ab 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -1664,6 +1664,14 @@ gen_audio_chain (GstPlaySink * playsink, gboolean raw) chain->sink = try_element (playsink, playsink->audio_sink, FALSE); } 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");