changeset 36781:e5c790cab2e8

Check demuxer to avoid NULL pointer usage.
author ib
date Mon, 17 Feb 2014 22:34:27 +0000
parents a5550a57a6cb
children 06344efeded3
files gui/dialog/menu.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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++ )
          {