From: <tp...@ke...> - 2009-09-01 14:17:21
|
Module: gst-plugins-base Branch: master Commit: e2e5a1da064f58dcbf5553ce7988c14c578db4f3 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=e2e5a1da064f58dcbf5553ce7988c14c578db4f3 Author: Tim-Philipp Müller <tim...@co...> Date: Tue Sep 1 14:30:41 2009 +0100 v4lsrc: don't log not-yet-initialised integer value --- sys/v4l/v4lsrc_calls.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/sys/v4l/v4lsrc_calls.c b/sys/v4l/v4lsrc_calls.c index e71fdc7..da16453 100644 --- a/sys/v4l/v4lsrc_calls.c +++ b/sys/v4l/v4lsrc_calls.c @@ -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; } |