Commit 8c7f729c authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

sys/v4l2/v4l2src_calls.c: Add missing curly brackets.

Original commit message from CVS:
* sys/v4l2/v4l2src_calls.c: (gst_v4l2src_capture_deinit):
Add missing curly brackets.
parent c729cbdb
2006-11-18 Tim-Philipp Müller <tim at centricular dot net>
* sys/v4l2/v4l2src_calls.c: (gst_v4l2src_capture_deinit):
Add missing curly brackets.
2006-11-17 Edgard Lima <edgard.lima@indt.org.br>
* sys/v4l2/v4l2src_calls.c:
......
......@@ -645,11 +645,12 @@ gst_v4l2src_capture_deinit (GstV4l2Src * v4l2src)
for (i = 0; i < v4l2src->breq.count; i++) {
if (g_atomic_int_dec_and_test (&v4l2src->pool->buffers[i].refcount)) {
if (ioctl (v4l2src->v4l2object->video_fd, VIDIOC_DQBUF,
&v4l2src->pool->buffers[i].buffer) < 0)
&v4l2src->pool->buffers[i].buffer) < 0) {
GST_DEBUG_OBJECT (v4l2src,
"Could not dequeue buffer on uninitialization."
"system error: %s. Will try reinit instead", g_strerror (errno));
try_reinit = TRUE;
try_reinit = TRUE;
}
}
}
if (g_atomic_int_dec_and_test (&v4l2src->pool->refcount)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment