[MPlayer-cvslog] r36393 - trunk/gui/dialog/menu.c

ib subversion at mplayerhq.hu
Fri Aug 2 11:39:29 CEST 2013


Author: ib
Date: Fri Aug  2 11:39:28 2013
New Revision: 36393

Log:
Fix segmentation fault with aspect ratio menu entry.

Without video stream guiInfo.sh_video isn't set.

Reported by Hans-Dieter Kosch, hdkosch kabelbw de.

Modified:
   trunk/gui/dialog/menu.c

Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Thu Aug  1 23:20:14 2013	(r36392)
+++ trunk/gui/dialog/menu.c	Fri Aug  2 11:39:28 2013	(r36393)
@@ -584,7 +584,7 @@ GtkWidget * CreatePopUpMenu( void )
    {
     int a11 = False, a169 = False, a43 = False, a235 = False;
 
-    if (FFABS(guiInfo.sh_video->aspect - guiInfo.sh_video->original_aspect) <= 0.01f) a11 = True;
+    if (!guiInfo.sh_video || (FFABS(guiInfo.sh_video->aspect - guiInfo.sh_video->original_aspect) <= 0.01f)) a11 = True;
     else
      {
        a169 = (FFABS(movie_aspect - 16.0f / 9.0f) <= 0.01f);


More information about the MPlayer-cvslog mailing list