hlsdemux: Reset the internal state going to/from READY instead of NULL

This theoretically allows reuse of the element when setting it to READY
instead of NULL.
This commit is contained in:
Sebastian Dröge 2011-09-02 14:55:45 +02:00
parent 445f626016
commit 82bbc76f15

View file

@ -286,7 +286,8 @@ gst_hls_demux_change_state (GstElement * element, GstStateChange transition)
GstHLSDemux *demux = GST_HLS_DEMUX (element);
switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
case GST_STATE_CHANGE_READY_TO_PAUSED:
case GST_STATE_CHANGE_PAUSED_TO_READY:
gst_hls_demux_reset (demux, FALSE);
break;
case GST_STATE_CHANGE_PAUSED_TO_PLAYING: