mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
hlsdemux2: Fix debug return statement
Due to latest commits res could have been NULL. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2679>
This commit is contained in:
parent
82bd65e711
commit
34a7710762
1 changed files with 4 additions and 2 deletions
|
@ -1117,7 +1117,9 @@ gst_hls_media_playlist_sync_to_segment (GstHLSMediaPlaylist * playlist,
|
|||
g_ptr_array_remove_index (playlist->segments, 0);
|
||||
res = NULL;
|
||||
}
|
||||
}
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
if (res) {
|
||||
pdtstring =
|
||||
res->datetime ? g_date_time_format_iso8601 (res->datetime) : NULL;
|
||||
GST_DEBUG ("Returning segment sn:%" G_GINT64_FORMAT " dsn:%" G_GINT64_FORMAT
|
||||
|
@ -1126,10 +1128,10 @@ gst_hls_media_playlist_sync_to_segment (GstHLSMediaPlaylist * playlist,
|
|||
GST_STIME_ARGS (res->stream_time), GST_TIME_ARGS (res->duration),
|
||||
pdtstring);
|
||||
g_free (pdtstring);
|
||||
#endif
|
||||
} else if (!GST_HLS_MEDIA_PLAYLIST_IS_LIVE (playlist)) {
|
||||
} else {
|
||||
GST_DEBUG ("Could not find a match");
|
||||
}
|
||||
#endif
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue