summaryrefslogtreecommitdiffstats
path: root/gst/mxf/mxfmux.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-05-09 15:48:01 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-05-09 15:50:51 +0200
commit8692ae2a9d0c0bca938d3b7883e3f10adde8d9fd (patch)
treee9d810eafec3039d714a175f5dcb45133d517026 /gst/mxf/mxfmux.c
parent3c073e45c0aa28e0088cc517ea442d31c4bc09a9 (diff)
downloadgst-plugins-bad-8692ae2a9d0c0bca938d3b7883e3f10adde8d9fd.tar.gz
gst-plugins-bad-8692ae2a9d0c0bca938d3b7883e3f10adde8d9fd.tar.bz2
gst-plugins-bad-8692ae2a9d0c0bca938d3b7883e3f10adde8d9fd.zip
mxfmux: Don't unref NULL buffers if pushing a buffer after the first failed
Diffstat (limited to 'gst/mxf/mxfmux.c')
-rw-r--r--gst/mxf/mxfmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mxf/mxfmux.c b/gst/mxf/mxfmux.c
index 3ca60a4e..a63172f2 100644
--- a/gst/mxf/mxfmux.c
+++ b/gst/mxf/mxfmux.c
@@ -1006,7 +1006,7 @@ gst_mxf_mux_write_header_metadata (GstMXFMux * mux)
if ((ret = gst_mxf_mux_push (mux, buf)) != GST_FLOW_OK) {
GST_ERROR_OBJECT (mux, "Failed pushing buffer: %s",
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);
return ret;
}