[vlc-commits] v4l2: remove stray dead code

Rémi Denis-Courmont git at videolan.org
Wed Apr 11 20:01:49 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 11 20:08:49 2012 +0300| [4ae81abec40e0dcdf350527eeeb5fb5c67415cb5] | committer: Rémi Denis-Courmont

v4l2: remove stray dead code

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

 modules/access/v4l2/demux.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/modules/access/v4l2/demux.c b/modules/access/v4l2/demux.c
index a81715b..b9b946d 100644
--- a/modules/access/v4l2/demux.c
+++ b/modules/access/v4l2/demux.c
@@ -367,15 +367,6 @@ static int InitVideo (demux_t *demux, int fd)
     if (SetupFormat (demux, fd, selected->v4l2, &fmt, &parm))
         return -1;
 
-#if 0
-    uint32_t width = var_InheritInteger (demux, CFG_PREFIX"width");
-    if (width != (uint32_t)-1)
-        fmt.fmt.pix.width = width; /* override width */
-    uint32_t height = var_InheritInteger (demux, CFG_PREFIX"height");
-    if (height != (uint32_t)-1)
-        fmt.fmt.pix.height = height; /* override height */
-#endif
-
     /* Print extra info */
     msg_Dbg (demux, "%d bytes maximum for complete image",
              fmt.fmt.pix.sizeimage);



More information about the vlc-commits mailing list