From bd9ef8fb687efde5d3ad98e84a5d60eca9fc117b Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 15 Aug 2016 16:37:44 +1000 Subject: winks: Fix RGB frame flipping and postprocessing Uncompressed RGB frames can be (usually are) bottom-up layout in DirectShow, and the code to flip them wasn't properly ported from 0.10. Fix it. Fix post-processing of RGB buffers. We need a writable buffer, but the requests pool is holding an extra ref. This could use more fixing to use a buffer pool --- sys/winks/gstksvideosrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/winks/gstksvideosrc.c') diff --git a/sys/winks/gstksvideosrc.c b/sys/winks/gstksvideosrc.c index 98f0b4cfb..0854b2940 100644 --- a/sys/winks/gstksvideosrc.c +++ b/sys/winks/gstksvideosrc.c @@ -927,7 +927,7 @@ gst_ks_video_src_create (GstPushSrc * pushsrc, GstBuffer ** buf) if (G_UNLIKELY (priv->do_stats)) gst_ks_video_src_update_statistics (self); - if (!gst_ks_video_device_postprocess_frame (priv->device, *buf)) { + if (!gst_ks_video_device_postprocess_frame (priv->device, buf)) { GST_ELEMENT_ERROR (self, RESOURCE, FAILED, ("Postprocessing failed"), ("Postprocessing failed")); return GST_FLOW_ERROR; -- cgit v1.2.1