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:
Thiago Santos 2013-02-07 03:09:28 -03:00
parent 2fe509d50a
commit 4a9d7f0a9f

View file

@ -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: