summaryrefslogtreecommitdiffstats
path: root/sys/v4l2/gstv4l2src.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2007-06-05 14:17:25 +0000
committerAndy Wingo <wingo@pobox.com>2007-06-05 14:17:25 +0000
commite99b73973bc401cb663c231fb38409ff406271be (patch)
tree2465d99072bad25be55bc3ccda2ea0d46e51bb2c /sys/v4l2/gstv4l2src.c
parent46ae6f904ffabdb9b837cd639f1ac542a23a7bcf (diff)
sys/v4l2/gstv4l2src.c (gst_v4l2src_start, gst_v4l2src_stop): Add some useless comments.
Original commit message from CVS: 2007-06-05 Andy Wingo <wingo@pobox.com> * sys/v4l2/gstv4l2src.c (gst_v4l2src_start, gst_v4l2src_stop): Add some useless comments. * sys/v4l2/v4l2src_calls.c (gst_v4l2src_capture_init): Don't queue frames before calling STREAMON, that might leave them in a state where they can't be dequeued if we go back to NULL without calling STREAMON, according to the docs. (gst_v4l2src_capture_start): Enqueue buffers here instead, right before we call STREAMON. (gst_v4l2src_capture_deinit): Remove crack to work around dequeue failures. (For me this code hung.) The pool refcounting is still crack; added a note to that effect.
Diffstat (limited to 'sys/v4l2/gstv4l2src.c')
-rw-r--r--sys/v4l2/gstv4l2src.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c
index e53b5b06..67be44e9 100644
--- a/sys/v4l2/gstv4l2src.c
+++ b/sys/v4l2/gstv4l2src.c
@@ -835,6 +835,7 @@ gst_v4l2src_start (GstBaseSrc * src)
{
GstV4l2Src *v4l2src = GST_V4L2SRC (src);
+ /* open the device */
if (!gst_v4l2_object_start (v4l2src->v4l2object))
return FALSE;
@@ -857,6 +858,7 @@ gst_v4l2src_stop (GstBaseSrc * src)
return FALSE;
}
+ /* close the device */
if (!gst_v4l2_object_stop (v4l2src->v4l2object))
return FALSE;