From 4a9d7f0a9f84612fcf6a57eef3cdcef53d9626c3 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 7 Feb 2013 03:09:28 -0300 Subject: [PATCH] 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 --- ext/dash/gstdashdemux.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index a781610..ea8aa93 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -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: -- 2.7.4