diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | gst/autodetect/gstautoaudiosink.c | 1 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,12 @@ +2007-03-09 Jan Schmidt <thaytan@mad.scientist.com> + + * gst/autodetect/gstautoaudiosink.c: (gst_auto_audio_sink_find_best): + Tim and I can't think of any reason the child audio sink needs to + be set back to NULL after successfully determining that it can + reach READY - it gets immediately set back to READY by the caller + anyway, causing an unnecessary close/open of any audio devices + involved. + 2007-03-09 Tim-Philipp Müller <tim at centricular dot net> * po/LINGUAS: diff --git a/gst/autodetect/gstautoaudiosink.c b/gst/autodetect/gstautoaudiosink.c index 379113af..3920a33d 100644 --- a/gst/autodetect/gstautoaudiosink.c +++ b/gst/autodetect/gstautoaudiosink.c @@ -229,7 +229,6 @@ gst_auto_audio_sink_find_best (GstAutoAudioSink * sink) gst_element_set_bus (el, bus); ret = gst_element_set_state (el, GST_STATE_READY); if (ret == GST_STATE_CHANGE_SUCCESS) { - gst_element_set_state (el, GST_STATE_NULL); GST_DEBUG_OBJECT (sink, "This worked!"); choice = el; break; |