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:
parent
445f626016
commit
82bbc76f15
@ -286,7 +286,8 @@ gst_hls_demux_change_state (GstElement * element, GstStateChange transition)
|
|||||||
GstHLSDemux *demux = GST_HLS_DEMUX (element);
|
GstHLSDemux *demux = GST_HLS_DEMUX (element);
|
||||||
|
|
||||||
switch (transition) {
|
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);
|
gst_hls_demux_reset (demux, FALSE);
|
||||||
break;
|
break;
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user