mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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
1 changed files with 0 additions and 11 deletions
|
@ -425,14 +425,6 @@ gst_dash_demux_change_state (GstElement * element, GstStateChange transition)
|
|||
break;
|
||||
case GST_STATE_CHANGE_READY_TO_PAUSED:
|
||||
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:
|
||||
break;
|
||||
}
|
||||
|
@ -440,9 +432,6 @@ gst_dash_demux_change_state (GstElement * element, GstStateChange transition)
|
|||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, 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:
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue