mxfmux: Don't unref NULL buffers if pushing a buffer after the first failed
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 9 May 2009 13:48:01 +0000 (15:48 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 9 May 2009 13:50:51 +0000 (15:50 +0200)
gst/mxf/mxfmux.c

index 3ca60a4..a63172f 100644 (file)
@@ -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;
     }