mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
adaptivedemux: improved error message if availabilityStartTime is missing for a live stream
For a live mpd, if availabilityStartTime is missing, adaptive demux asserts with: Unexpected critical/warning: gst_date_time_to_g_date_time: assertion 'datetime != NULL' failed. This patch improves the error message to: Unexpected critical/warning: gst_mpd_client_seek_to_time: assertion 'client->mpd_node->availabilityStartTime != NULL' failed https://bugzilla.gnome.org/show_bug.cgi?id=757602
This commit is contained in:
parent
38d7434bab
commit
2918dff2e0
1 changed files with 6 additions and 3 deletions
|
@ -5795,14 +5795,17 @@ gst_mpd_client_get_next_segment_availability_end_time (GstMpdClient * client,
|
|||
gboolean
|
||||
gst_mpd_client_seek_to_time (GstMpdClient * client, GDateTime * time)
|
||||
{
|
||||
GDateTime *start =
|
||||
gst_date_time_to_g_date_time (client->mpd_node->availabilityStartTime);
|
||||
GDateTime *start;
|
||||
GTimeSpan ts_microseconds;
|
||||
GstClockTime ts;
|
||||
gboolean ret = TRUE;
|
||||
GList *stream;
|
||||
|
||||
g_return_val_if_fail (gst_mpd_client_is_live (client), 0);
|
||||
g_return_val_if_fail (gst_mpd_client_is_live (client), FALSE);
|
||||
g_return_val_if_fail (client->mpd_node->availabilityStartTime != NULL, FALSE);
|
||||
|
||||
start =
|
||||
gst_date_time_to_g_date_time (client->mpd_node->availabilityStartTime);
|
||||
|
||||
ts_microseconds = g_date_time_difference (time, start);
|
||||
g_date_time_unref (start);
|
||||
|
|
Loading…
Reference in a new issue