[vlc-commits] v4l2: fix uninitialized value

Rémi Denis-Courmont git at videolan.org
Wed Jun 12 19:02:14 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 12 19:59:31 2013 +0300| [ebdde6200baab9b285f196e2e87e995364180d9f] | committer: Rémi Denis-Courmont

v4l2: fix uninitialized value

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ebdde6200baab9b285f196e2e87e995364180d9f
---

 modules/access/v4l2/video.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c
index ecdc581..303b52d 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -45,6 +45,7 @@ static int SetupStandard (vlc_object_t *obj, int fd,
     if (!(input->capabilities & V4L2_IN_CAP_STD))
     {
         msg_Dbg (obj, "no video standard selection");
+        *std = V4L2_STD_UNKNOWN;
         return 0;
     }
 



More information about the vlc-commits mailing list