mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 23:58:17 +00:00
gst/autodetect/gstautoaudiosink.c: Don't unnecessarily perform a READY->NULL->READY transition on the detected audio ...
Original commit message from CVS: * gst/autodetect/gstautoaudiosink.c: (gst_auto_audio_sink_detect): Don't unnecessarily perform a READY->NULL->READY transition on the detected audio sink when starting up. Fixes: #440127
This commit is contained in:
parent
d2977ff4eb
commit
465a740bbf
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-05-25 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* gst/autodetect/gstautoaudiosink.c: (gst_auto_audio_sink_detect):
|
||||
Don't unnecessarily perform a READY->NULL->READY transition on the
|
||||
detected audio sink when starting up. Fixes: #440127
|
||||
|
||||
2007-05-24 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/flac/gstflacenc.c: (gst_flac_enc_sink_setcaps),
|
||||
|
|
|
@ -290,7 +290,12 @@ gst_auto_audio_sink_detect (GstAutoAudioSink * sink)
|
|||
}
|
||||
|
||||
sink->kid = esink;
|
||||
gst_element_set_state (sink->kid, GST_STATE (sink));
|
||||
/* Ensure the child is brought up to the right state to match the parent
|
||||
* although it's currently always in READY and
|
||||
* we're always doing NULL->READY. */
|
||||
if (GST_STATE (sink->kid) < GST_STATE (sink))
|
||||
gst_element_set_state (sink->kid, GST_STATE (sink));
|
||||
|
||||
gst_bin_add (GST_BIN (sink), esink);
|
||||
|
||||
/* attach ghost pad */
|
||||
|
|
Loading…
Reference in a new issue