mirror of https://github.com/mpv-player/mpv
Avoid crash with video stream switching and -nosound
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26850 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ae94f470b2
commit
08678c2c6a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue