# HG changeset patch # User ib # Date 1399470868 0 # Node ID 91628537e24e1b4320ca0c0830e564f598903f00 # Parent 86893b300a45c2f7cae6c10922f2c098f6a818ca Fix segmentation fault. This would occur when there is no audio. diff -r 86893b300a45 -r 91628537e24e gui/interface.c --- a/gui/interface.c Tue May 06 19:02:03 2014 +0000 +++ b/gui/interface.c Wed May 07 13:54:28 2014 +0000 @@ -810,8 +810,11 @@ 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);