[MPlayer-cvslog] r37186 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Wed May 7 15:54:29 CEST 2014


Author: ib
Date: Wed May  7 15:54:28 2014
New Revision: 37186

Log:
Fix segmentation fault.

This would occur when there is no audio.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Tue May  6 21:02:03 2014	(r37185)
+++ trunk/gui/interface.c	Wed May  7 15:54:28 2014	(r37186)
@@ -810,8 +810,11 @@ int gui(int what, void *data)
 
         sh_audio = data;
 
+        if (sh_audio) {
         ad = sh_audio->ad_driver;
         guiInfo.AudioPassthrough = (gstrcmp(ad->info->short_name, "hwac3") == 0);
+        } else
+            guiInfo.AudioPassthrough = False;
 
         guiInfo.AudioChannels = (sh_audio ? sh_audio->channels : 0);
 


More information about the MPlayer-cvslog mailing list