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.
This commit is contained in:
Tim-Philipp Müller 2006-11-18 18:14:34 +00:00
parent c729cbdbee
commit 8c7f729c07
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
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> 2006-11-17 Edgard Lima <edgard.lima@indt.org.br>
* sys/v4l2/v4l2src_calls.c: * sys/v4l2/v4l2src_calls.c:

View file

@ -645,13 +645,14 @@ gst_v4l2src_capture_deinit (GstV4l2Src * v4l2src)
for (i = 0; i < v4l2src->breq.count; i++) { for (i = 0; i < v4l2src->breq.count; i++) {
if (g_atomic_int_dec_and_test (&v4l2src->pool->buffers[i].refcount)) { if (g_atomic_int_dec_and_test (&v4l2src->pool->buffers[i].refcount)) {
if (ioctl (v4l2src->v4l2object->video_fd, VIDIOC_DQBUF, if (ioctl (v4l2src->v4l2object->video_fd, VIDIOC_DQBUF,
&v4l2src->pool->buffers[i].buffer) < 0) &v4l2src->pool->buffers[i].buffer) < 0) {
GST_DEBUG_OBJECT (v4l2src, GST_DEBUG_OBJECT (v4l2src,
"Could not dequeue buffer on uninitialization." "Could not dequeue buffer on uninitialization."
"system error: %s. Will try reinit instead", g_strerror (errno)); "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)) { if (g_atomic_int_dec_and_test (&v4l2src->pool->refcount)) {
/* we're last thing that used all this */ /* we're last thing that used all this */
gst_v4l2src_buffer_pool_free (v4l2src->pool, FALSE); gst_v4l2src_buffer_pool_free (v4l2src->pool, FALSE);