tagdemux: Unref the actual buffer instead of the memory address of the buffer
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 22 Feb 2009 18:12:00 +0000 (19:12 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sun, 22 Feb 2009 18:12:00 +0000 (19:12 +0100)
gst-libs/gst/tag/gsttagdemux.c

index 9f041da..97977b8 100644 (file)
@@ -1285,7 +1285,7 @@ read_beyond_end:
   {
     GST_DEBUG_OBJECT (demux, "attempted read beyond end of file");
     if (*buffer != NULL) {
-      gst_buffer_unref (buffer);
+      gst_buffer_unref (*buffer);
       *buffer = NULL;
     }
     return GST_FLOW_UNEXPECTED;