mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
v4lsrc: don't log not-yet-initialised integer value
This commit is contained in:
parent
1af601d403
commit
e2e5a1da06
1 changed files with 4 additions and 1 deletions
|
@ -259,10 +259,11 @@ gst_v4lsrc_capture_start (GstV4lSrc * v4lsrc)
|
|||
gboolean
|
||||
gst_v4lsrc_grab_frame (GstV4lSrc * v4lsrc, gint * num)
|
||||
{
|
||||
GST_LOG_OBJECT (v4lsrc, "grabbing frame %d", *num);
|
||||
GST_V4L_CHECK_OPEN (GST_V4LELEMENT (v4lsrc));
|
||||
GST_V4L_CHECK_ACTIVE (GST_V4LELEMENT (v4lsrc));
|
||||
|
||||
GST_LOG_OBJECT (v4lsrc, "grabbing frame");
|
||||
|
||||
g_mutex_lock (v4lsrc->mutex_queue_state);
|
||||
|
||||
/* do we have enough frames? */
|
||||
|
@ -297,6 +298,8 @@ gst_v4lsrc_grab_frame (GstV4lSrc * v4lsrc, gint * num)
|
|||
|
||||
g_mutex_unlock (v4lsrc->mutex_queue_state);
|
||||
|
||||
GST_LOG_OBJECT (v4lsrc, "grabbed frame %d", *num);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue