# HG changeset patch # User ben # Date 1217856320 0 # Node ID 89c03148e9a4cf478efe732d3933913be5fc42fe # Parent ea586e46da1c4c064c8e7a27a4f55cb9b0ff574f 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) diff -r ea586e46da1c -r 89c03148e9a4 command.c --- a/command.c Mon Aug 04 09:23:29 2008 +0000 +++ b/command.c Mon Aug 04 13:25:20 2008 +0000 @@ -835,6 +835,8 @@ 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