vdpau: fix invalid unref
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Wed, 1 Sep 2010 15:45:19 +0000 (17:45 +0200)
committerCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Sun, 5 Sep 2010 11:52:40 +0000 (13:52 +0200)
sys/vdpau/gstvdp/gstvdpdecoder.c

index 5e14fac..5c7a66c 100644 (file)
@@ -132,7 +132,7 @@ decode_error:
       ("Error returned from vdpau was: %s",
           device->vdp_get_error_string (status)));
 
-  gst_buffer_unref (GST_BUFFER_CAST (video_buf));
+  gst_buffer_unref (GST_BUFFER_CAST (*video_buf));
 
   return GST_FLOW_ERROR;
 }