dashdemux: do not pause/start the stream loop on playing/paused changes
The demuxer shouldn't care about paused/playing, it should act the same in both states
This commit is contained in:
parent
2fe509d50a
commit
4a9d7f0a9f
@ -425,14 +425,6 @@ gst_dash_demux_change_state (GstElement * element, GstStateChange transition)
|
|||||||
break;
|
break;
|
||||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||||
break;
|
break;
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_PLAYING:
|
|
||||||
/* Start the streaming loop in paused only if we already received
|
|
||||||
the manifest. It might have been stopped if we were in PAUSED
|
|
||||||
state and we filled our queue with enough cached fragments
|
|
||||||
*/
|
|
||||||
if (demux->client->mpd_node != NULL)
|
|
||||||
gst_dash_demux_resume_stream_task (demux);
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -440,9 +432,6 @@ gst_dash_demux_change_state (GstElement * element, GstStateChange transition)
|
|||||||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||||
|
|
||||||
switch (transition) {
|
switch (transition) {
|
||||||
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
|
|
||||||
gst_dash_demux_pause_stream_task (demux);
|
|
||||||
break;
|
|
||||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user