[MPlayer-cvslog] r26850 - trunk/mplayer.c
reimar
subversion at mplayerhq.hu
Wed May 21 22:46:05 CEST 2008
Author: reimar
Date: Wed May 21 22:46:05 2008
New Revision: 26850
Log:
Avoid crash with video stream switching and -nosound
Modified:
trunk/mplayer.c
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c (original)
+++ trunk/mplayer.c Wed May 21 22:46:05 2008
@@ -3692,7 +3692,9 @@ if (mpctx->sh_audio)
if(!mpctx->sh_video) {
// handle audio-only case:
double a_pos=0;
- if(!quiet || end_at.type == END_AT_TIME )
+ // sh_audio can be NULL due to video stream switching
+ // TODO: handle this better
+ if((!quiet || end_at.type == END_AT_TIME) && mpctx->sh_audio)
a_pos = playing_audio_pts(mpctx->sh_audio, mpctx->d_audio, mpctx->audio_out);
if(!quiet)
More information about the MPlayer-cvslog
mailing list