diff options
author | Benoit Fouet <benoit.fouet@purplelabs.com> | 2008-07-17 13:54:38 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2008-07-17 13:54:38 +0000 |
commit | f2fb132b9c4b8ed008a3784f6f942119dbd74277 (patch) | |
tree | c022b001cb353db648fb5275e5dde383182640c7 /sys | |
parent | 54b1c496d6e14262446a7a4b7fe536371b580b96 (diff) |
sys/v4l2/gstv4l2src.c: Avoid compiler warning by initialising variable to NULL (#543259).
Original commit message from CVS:
Patch by: Benoit Fouet <benoit.fouet purplelabs com>
* sys/v4l2/gstv4l2src.c: (gst_v4l2src_negotiate):
Avoid compiler warning by initialising variable to NULL (#543259).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/v4l2/gstv4l2src.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index a6919b97..ce4b2237 100644 --- a/sys/v4l2/gstv4l2src.c +++ b/sys/v4l2/gstv4l2src.c @@ -476,8 +476,7 @@ gst_v4l2src_negotiate (GstBaseSrc * basesrc) peercaps = gst_pad_peer_get_caps (GST_BASE_SRC_PAD (basesrc)); GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps); if (peercaps && !gst_caps_is_any (peercaps)) { - GstCaps *icaps; - + GstCaps *icaps = NULL; int i; /* Prefer the first caps we are compatible with that the peer proposed */ |