[MPlayer-cvslog] r38392 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Sat Aug 27 11:33:54 EEST 2022


Author: reimar
Date: Sat Aug 27 11:33:54 2022
New Revision: 38392

Log:
mplayer.c: Fix crash introduced in r38380.

When we fail to read video properties we need
to ensure sh_video is set to NULL so we do not
try to play video.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Sat Aug 27 11:07:11 2022	(r38391)
+++ trunk/mplayer.c	Sat Aug 27 11:33:54 2022	(r38392)
@@ -2436,6 +2436,9 @@ int reinit_video_chain(void)
 
 err_out:
     uninit_player(INITIALIZED_VCODEC);
+    // ensure we do not try to play video even if we
+    // failed before vfilter creation.
+    mpctx->sh_video = NULL;
     return 0;
 }
 


More information about the MPlayer-cvslog mailing list