wavpackenc: don't unref buffer with gst_object_unref()
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 18 Oct 2011 11:25:14 +0000 (12:25 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 18 Oct 2011 11:25:14 +0000 (12:25 +0100)
ext/wavpack/gstwavpackenc.c

index aa085fc..91af97c 100644 (file)
@@ -858,7 +858,7 @@ gst_wavpack_enc_sink_event (GstPad * pad, GstEvent * event)
       /* Drop all remaining data, this is no complete block otherwise
        * it would've been pushed already */
       if (enc->pending_buffer) {
-        gst_object_unref (enc->pending_buffer);
+        gst_buffer_unref (enc->pending_buffer);
         enc->pending_buffer = NULL;
         enc->pending_offset = 0;
       }