diff mbox

[13/19] dvdspu: use refcnting instead of explicit copy

Message ID 1325628171-4803-6-git-send-email-rob@ti.com
State New
Headers show

Commit Message

Rob Clark Jan. 3, 2012, 10:02 p.m. UTC
---
See: https://bugzilla.gnome.org/show_bug.cgi?id=667222

 gst/dvdspu/gstdvdspu.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/gst/dvdspu/gstdvdspu.c b/gst/dvdspu/gstdvdspu.c
index c1b97f3..fa68b24 100644
--- a/gst/dvdspu/gstdvdspu.c
+++ b/gst/dvdspu/gstdvdspu.c
@@ -563,7 +563,7 @@  dvdspu_handle_vid_buffer (GstDVDSpu * dvdspu, GstBuffer * buf)
       goto no_ref_frame;
     }
 
-    buf = gst_buffer_copy (dvdspu->ref_frame);
+    buf = gst_buffer_ref (dvdspu->ref_frame);
 
 #if 0
     g_print ("Duping frame %" GST_TIME_FORMAT " with new TS %" GST_TIME_FORMAT
@@ -601,7 +601,7 @@  dvdspu_handle_vid_buffer (GstDVDSpu * dvdspu, GstBuffer * buf)
 
       /* Take a copy in case we hit a still frame and need the pristine 
        * frame around */
-      copy = gst_buffer_copy (buf);
+      copy = gst_buffer_ref (buf);
       gst_buffer_replace (&dvdspu->ref_frame, copy);
       gst_buffer_unref (copy);
     }