mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 09:25:42 +00:00
flvmux: Add protection when unref GstFlvMuxPad
This is to avoid gst_object_unref: assertion 'object != NULL' failed. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1843>
This commit is contained in:
parent
21f7889187
commit
b11084f729
1 changed files with 4 additions and 2 deletions
|
@ -2080,8 +2080,10 @@ gst_flv_mux_aggregate (GstAggregator * aggregator, gboolean timeout)
|
|||
gst_buffer_unref (buffer);
|
||||
buffer = NULL;
|
||||
}
|
||||
gst_object_unref (best);
|
||||
best = NULL;
|
||||
if (best) {
|
||||
gst_object_unref (best);
|
||||
best = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (best) {
|
||||
|
|
Loading…
Reference in a new issue