diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2007-03-09 20:12:08 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2007-03-09 20:12:08 +0000 |
commit | 647934baf9f14c6f5297e84247ecc0da8c93316c (patch) | |
tree | 1f2674982c6a420dd750e0b7367605b7b8ea84cc /gst/autodetect | |
parent | 0ee5d239d359c85648659faeaf696458dde62474 (diff) |
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.
Diffstat (limited to 'gst/autodetect')
-rw-r--r-- | gst/autodetect/gstautoaudiosink.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gst/autodetect/gstautoaudiosink.c b/gst/autodetect/gstautoaudiosink.c index 379113aff..3920a33db 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; |