diff options
author | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2009-04-04 22:45:09 +0200 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-06-20 15:21:25 +0100 |
commit | 74485f6fa28ac3413ca5533f7bee695ab7670b47 (patch) | |
tree | 354e9374273ee2f2dab0fac2f110c68af2006b9c /sys/vdpau/gstvdpauvideoyuv.c | |
parent | 17a758ec7129976fa910b6ca0d8fd3d19c815158 (diff) | |
download | gst-plugins-bad-74485f6fa28ac3413ca5533f7bee695ab7670b47.tar.gz gst-plugins-bad-74485f6fa28ac3413ca5533f7bee695ab7670b47.tar.bz2 gst-plugins-bad-74485f6fa28ac3413ca5533f7bee695ab7670b47.zip |
vdpau: VideoYUV unref buffer in chain so that we don't leak them MpegDecoder parse sequence headers
Diffstat (limited to 'sys/vdpau/gstvdpauvideoyuv.c')
-rw-r--r-- | sys/vdpau/gstvdpauvideoyuv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vdpau/gstvdpauvideoyuv.c b/sys/vdpau/gstvdpauvideoyuv.c index b9be10c1..ca1ec803 100644 --- a/sys/vdpau/gstvdpauvideoyuv.c +++ b/sys/vdpau/gstvdpauvideoyuv.c @@ -123,7 +123,7 @@ gst_vdpau_video_yuv_chain (GstPad * pad, GstBuffer * buffer) ("Couldn't get data from vdpau"), ("Error returned from vdpau was: %s", device->vdp_get_error_string (status))); - return GST_FLOW_ERROR; + break; } break; } @@ -159,7 +159,7 @@ gst_vdpau_video_yuv_chain (GstPad * pad, GstBuffer * buffer) ("Couldn't get data from vdpau"), ("Error returned from vdpau was: %s", device->vdp_get_error_string (status))); - return GST_FLOW_ERROR; + break; } break; } @@ -167,6 +167,8 @@ gst_vdpau_video_yuv_chain (GstPad * pad, GstBuffer * buffer) break; } + gst_buffer_unref (buffer); + if (outbuf) { gst_buffer_copy_metadata (outbuf, buffer, GST_BUFFER_COPY_TIMESTAMPS); |