changeset 8593:2c7870bf81db

sh_audio==NULL hotfix by Robert Varga <nite@hq.alert.sk>
author arpi
date Sat, 28 Dec 2002 11:39:31 +0000
parents 0aee4b227d9e
children 00326905484b
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Dec 28 00:55:54 2002 +0000
+++ b/mplayer.c	Sat Dec 28 11:39:31 2002 +0000
@@ -2658,7 +2658,7 @@
                         d_audio->id,aid_temp);
                 // FIXME: need a bettery way to change audio stream id
                 d_audio->id=dvdsub_id=aid_temp;
-                resync_audio_stream(sh_audio);
+                if(sh_audio) resync_audio_stream(sh_audio);
         }
 
         break;