From e24cfa72505327a247b2af9db39c98167f62ee7f Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sun, 4 Apr 2010 06:23:31 -0500 Subject: [PATCH] v4l2sink: don't render preroll buffers Most v4l2 drivers will get upset when you queue the same buffer twice in a row without first dequeueing it. Rendering of pre-roll buffers can be re-introduced later, but will require tracking the state of the buffer, and avoiding to re-QBUF if the buffer has already been passed to the driver. --- sys/v4l2/gstv4l2sink.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/v4l2/gstv4l2sink.c b/sys/v4l2/gstv4l2sink.c index 9bef34fb04..0dcce397ea 100644 --- a/sys/v4l2/gstv4l2sink.c +++ b/sys/v4l2/gstv4l2sink.c @@ -249,7 +249,6 @@ gst_v4l2sink_class_init (GstV4l2SinkClass * klass) basesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_v4l2sink_get_caps); basesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_v4l2sink_set_caps); basesink_class->buffer_alloc = GST_DEBUG_FUNCPTR (gst_v4l2sink_buffer_alloc); - basesink_class->preroll = GST_DEBUG_FUNCPTR (gst_v4l2sink_show_frame); basesink_class->render = GST_DEBUG_FUNCPTR (gst_v4l2sink_show_frame); }