diff options
author | Jan Schmidt <jan@centricular.com> | 2016-08-15 16:37:44 +1000 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2016-08-16 01:39:00 +1000 |
commit | bd9ef8fb687efde5d3ad98e84a5d60eca9fc117b (patch) | |
tree | 104c56f1f2c5b6b7e919ad0e61434d2656e1ae51 /sys/winks/gstksvideosrc.c | |
parent | 8d2a6ca90de2d60c29f94ddb6076296cd7a53207 (diff) | |
download | gstreamer-plugins-bad-bd9ef8fb687efde5d3ad98e84a5d60eca9fc117b.tar.gz |
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
Diffstat (limited to 'sys/winks/gstksvideosrc.c')
-rw-r--r-- | sys/winks/gstksvideosrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |