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>
Wed, 31 May 2017 09:28:08 +0000 (11:28 +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 d78d144f393aa5ba3ee1d1ad6e6e58d0d6b60e44..bc4593c19114900e1c0c736899245ae3099f6afe 100644 (file)
@@ -2562,8 +2562,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)) {