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).
This commit is contained in:
Benoit Fouet 2008-07-17 13:54:38 +00:00 committed by Tim-Philipp Müller
parent 54b1c496d6
commit f2fb132b9c
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2008-07-17 Tim-Philipp Müller <tim.muller at collabora co uk>
Patch by: Benoit Fouet <benoit.fouet purplelabs com>
* sys/v4l2/gstv4l2src.c: (gst_v4l2src_negotiate):
Avoid compiler warning by initialising variable to NULL (#543259).
2008-07-14 Sebastian Dröge <slomo@circular-chaos.org>
* gst/debug/gsttaginject.c: (gst_tag_inject_start):

View file

@ -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 */