mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
basetsmux: Don't send the capsheader if src pad has no caps
That means we're shutting down, so there's no point in the streamheader being sent Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1864>
This commit is contained in:
parent
1f7515100c
commit
82dcb27401
1 changed files with 7 additions and 3 deletions
|
@ -272,9 +272,13 @@ gst_base_ts_mux_set_header_on_caps (GstBaseTsMux * mux)
|
|||
GValue value = { 0 };
|
||||
GstCaps *caps;
|
||||
|
||||
caps =
|
||||
gst_caps_make_writable (gst_pad_get_current_caps (GST_AGGREGATOR_SRC_PAD
|
||||
(mux)));
|
||||
caps = gst_pad_get_current_caps (GST_AGGREGATOR_SRC_PAD (mux));
|
||||
|
||||
/* If we have no caps, we are possibly shutting down */
|
||||
if (!caps)
|
||||
return;
|
||||
|
||||
caps = gst_caps_make_writable (caps);
|
||||
structure = gst_caps_get_structure (caps, 0);
|
||||
|
||||
g_value_init (&array, GST_TYPE_ARRAY);
|
||||
|
|
Loading…
Reference in a new issue