mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
playsink: Try include 'pitch', if no other sink is provided
As a default, try the pipeline 'pitch ! audioconvert ! autoaudiosink' before trying plain autoaudiosink
This commit is contained in:
parent
67a12c9c72
commit
105814e2c7
1 changed files with 8 additions and 0 deletions
|
@ -1664,6 +1664,14 @@ gen_audio_chain (GstPlaySink * playsink, gboolean raw)
|
||||||
chain->sink = try_element (playsink, playsink->audio_sink, FALSE);
|
chain->sink = try_element (playsink, playsink->audio_sink, FALSE);
|
||||||
} else {
|
} else {
|
||||||
/* only try fallback if no specific sink was chosen */
|
/* 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) {
|
if (chain->sink == NULL) {
|
||||||
GST_DEBUG_OBJECT (playsink, "trying autoaudiosink");
|
GST_DEBUG_OBJECT (playsink, "trying autoaudiosink");
|
||||||
elem = gst_element_factory_make ("autoaudiosink", "audiosink");
|
elem = gst_element_factory_make ("autoaudiosink", "audiosink");
|
||||||
|
|
Loading…
Reference in a new issue