If we don't have a clock, stop the source instead of asserting in
gst_clock_get_time. This can happen when the element is removed from the
pipeline while it's playing.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1674>
/* Get clock and values */
clock = gst_element_get_clock (GST_ELEMENT (src));
+ if (!clock) {
+ GST_DEBUG_OBJECT (src, "Clock missing, flushing");
+ return GST_FLOW_FLUSHING;
+ }
+
base_time = gst_element_get_base_time (GST_ELEMENT (src));
recv_len = gst_srt_object_read (self->srtobject, info.data,