From 647934baf9f14c6f5297e84247ecc0da8c93316c Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 9 Mar 2007 20:12:08 +0000 Subject: gst/autodetect/gstautoaudiosink.c: Tim and I can't think of any reason the child audio sink needs to be set back to N... Original commit message from CVS: * 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. --- gst/autodetect/gstautoaudiosink.c | 1 - 1 file changed, 1 deletion(-) (limited to 'gst/autodetect') 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; -- cgit