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
@ -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…
x
Reference in New Issue
Block a user