mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
mxfmux: Don't unref NULL buffers if pushing a buffer after the first failed
This commit is contained in:
parent
3c073e45c0
commit
8692ae2a9d
1 changed files with 1 additions and 1 deletions
|
@ -1006,7 +1006,7 @@ gst_mxf_mux_write_header_metadata (GstMXFMux * mux)
|
||||||
if ((ret = gst_mxf_mux_push (mux, buf)) != GST_FLOW_OK) {
|
if ((ret = gst_mxf_mux_push (mux, buf)) != GST_FLOW_OK) {
|
||||||
GST_ERROR_OBJECT (mux, "Failed pushing buffer: %s",
|
GST_ERROR_OBJECT (mux, "Failed pushing buffer: %s",
|
||||||
gst_flow_get_name (ret));
|
gst_flow_get_name (ret));
|
||||||
g_list_foreach (buffers, (GFunc) gst_mini_object_unref, NULL);
|
g_list_foreach (l, (GFunc) gst_mini_object_unref, NULL);
|
||||||
g_list_free (buffers);
|
g_list_free (buffers);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue