[MPlayer-cvslog] r27411 - trunk/command.c
ben
subversion at mplayerhq.hu
Mon Aug 4 15:25:20 CEST 2008
Author: ben
Date: Mon Aug 4 15:25:20 2008
New Revision: 27411
Log:
Fixes unsafe 'switch_audio' command with set_property() call.
Without it, MPlayer segv trying to dereference NULL demuxer.
Patch by Mathieu Schroeter (mathieu dot schroeter at gamesover dot ch)
Modified:
trunk/command.c
Modified: trunk/command.c
==============================================================================
--- trunk/command.c (original)
+++ trunk/command.c Mon Aug 4 15:25:20 2008
@@ -835,6 +835,8 @@ static int mp_property_audio(m_option_t
case M_PROPERTY_STEP_UP:
case M_PROPERTY_SET:
+ if (!mpctx->demuxer)
+ return M_PROPERTY_UNAVAILABLE;
if (action == M_PROPERTY_SET && arg)
tmp = *((int *) arg);
else
More information about the MPlayer-cvslog
mailing list