summaryrefslogtreecommitdiffstats
path: root/sys/vdpau/gstvdpauvideoyuv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vdpau/gstvdpauvideoyuv.c')
-rw-r--r--sys/vdpau/gstvdpauvideoyuv.c6
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);