mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
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:
parent
c729cbdbee
commit
8c7f729c07
2 changed files with 8 additions and 2 deletions
|
@ -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:
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue