4 Aug
2008
4 Aug
'08
1:25 p.m.
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
6677
Age (days ago)
6677
Last active (days ago)
0 comments
1 participants
participants (1)
-
ben