diff options
author | Florin Apostol <florin.apostol@oregan.net> | 2015-10-07 14:22:46 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-10-07 19:02:41 +0100 |
commit | 47dcdeb5047cba23637034aa25a0194bc62e7c30 (patch) | |
tree | 2794897f13a60ddabf4df0542f230571a7817515 /ext | |
parent | 7592d5120a118173bff3579c40b69885198de5e3 (diff) | |
download | gstreamer-plugins-bad-47dcdeb5047cba23637034aa25a0194bc62e7c30.tar.gz |
dashdemux: fixed has_next_period
gst_mpd_client_has_next_period now calls gst_mpd_client_setup_media_presentation
to refresh the period information.
https://bugzilla.gnome.org/show_bug.cgi?id=756186
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dash/gstmpdparser.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/dash/gstmpdparser.c b/ext/dash/gstmpdparser.c index bb9d7b057..d5a655dd9 100644 --- a/ext/dash/gstmpdparser.c +++ b/ext/dash/gstmpdparser.c @@ -5160,6 +5160,10 @@ gst_mpd_client_has_previous_period (GstMpdClient * client) g_return_val_if_fail (client != NULL, FALSE); g_return_val_if_fail (client->periods != NULL, FALSE); + if (!gst_mpd_client_setup_media_presentation (client, GST_CLOCK_TIME_NONE, + client->period_idx - 1, NULL)) + return FALSE; + next_stream_period = g_list_nth_data (client->periods, client->period_idx - 1); @@ -5173,6 +5177,10 @@ gst_mpd_client_has_next_period (GstMpdClient * client) g_return_val_if_fail (client != NULL, FALSE); g_return_val_if_fail (client->periods != NULL, FALSE); + if (!gst_mpd_client_setup_media_presentation (client, GST_CLOCK_TIME_NONE, + client->period_idx + 1, NULL)) + return FALSE; + next_stream_period = g_list_nth_data (client->periods, client->period_idx + 1); return next_stream_period != NULL; |