diff gui/dialog/menu.c @ 36781:e5c790cab2e8

Check demuxer to avoid NULL pointer usage.
author ib
date Mon, 17 Feb 2014 22:34:27 +0000
parents 5ea757ca6270
children 1236a692d0c6
line wrap: on
line diff
--- a/gui/dialog/menu.c	Mon Feb 17 14:36:16 2014 +0000
+++ b/gui/dialog/menu.c	Mon Feb 17 22:34:27 2014 +0000
@@ -744,7 +744,7 @@
          }
        }
       /* embedded (demuxer) */
-      else if ( i >= subs0 + subs1 )
+      else if ( ( i >= subs0 + subs1 ) && demuxer )
        {
         for ( j=0;j < MAX_S_STREAMS;j++ )
          {