summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2011-08-30 18:21:31 +1000
committerJan Schmidt <thaytan@noraisin.net>2011-08-30 18:21:31 +1000
commit105814e2c78f9867c61531b9e8166e4ae994296f (patch)
treeb0da9f6d6d141e275fd8c3e15cf8af8e08718e69
parent67a12c9c7298717901efce0bcfa6abbe84f97cb0 (diff)
playsink: Try include 'pitch', if no other sink is provided
As a default, try the pipeline 'pitch ! audioconvert ! autoaudiosink' before trying plain autoaudiosink
-rw-r--r--gst/playback/gstplaysink.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c
index 01f00a5cd..cd92c332a 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);