mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
hlssink2: Don't assert if we don't have a current location when receiving the fragment-closed message
This can happen if the application did not provide an output stream for the fragment and didn't handle the error message before splitmuxsink decided to consider the fragment closed. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1469>
This commit is contained in:
parent
8544f3928e
commit
6e412d42c7
1 changed files with 5 additions and 1 deletions
|
@ -419,7 +419,11 @@ gst_hls_sink2_handle_message (GstBin * bin, GstMessage * message)
|
|||
GstClockTime running_time;
|
||||
gchar *entry_location;
|
||||
|
||||
g_assert (sink->current_location != NULL);
|
||||
if (!sink->current_location) {
|
||||
GST_ELEMENT_ERROR (sink, RESOURCE, OPEN_WRITE, ((NULL)),
|
||||
("Fragment closed without knowing its location"));
|
||||
break;
|
||||
}
|
||||
|
||||
gst_structure_get_clock_time (s, "running-time", &running_time);
|
||||
|
||||
|
|
Loading…
Reference in a new issue