dashdemux: Remove wrong assertion
authorEdward Hervey <edward@centricular.com>
Wed, 31 May 2017 08:58:39 +0000 (10:58 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 12 Jun 2017 14:07:51 +0000 (16:07 +0200)
This is wrong because:
* If the rate is negative we should check for the *previous* period
* adaptivedemux already does the proper checks before calling this
  method

ext/dash/gstdashdemux.c

index 6c0ade7..839a0b3 100644 (file)
@@ -1938,8 +1938,6 @@ gst_dash_demux_advance_period (GstAdaptiveDemux * demux)
 {
   GstDashDemux *dashdemux = GST_DASH_DEMUX_CAST (demux);
 
-  g_return_if_fail (gst_mpd_client_has_next_period (dashdemux->client));
-
   if (demux->segment.rate >= 0) {
     if (!gst_mpd_client_set_period_index (dashdemux->client,
             gst_mpd_client_get_period_index (dashdemux->client) + 1)) {