mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
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
This commit is contained in:
parent
3b89dd4768
commit
1d1094b71b
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue