From bc212e3500ef776f849a9ee6c04dfaa4994c62f6 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 27 May 2008 18:39:57 +0000 Subject: Add a slave command to stop stream playback. Mostly useful when used with -idle mode. Patch by Mathieu Schroeter ( mathieu dot schroeter at gamesover dot ch ) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26909 b3059339-0415-0410-9bf9-f77b7e298cf2 --- command.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'command.c') diff --git a/command.c b/command.c index c880d7e478..6c224ff697 100644 --- a/command.c +++ b/command.c @@ -2621,6 +2621,11 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd) } break; + case MP_CMD_STOP: + mpctx->eof = PT_STOP; + brk_cmd = 1; + break; + #ifdef USE_RADIO case MP_CMD_RADIO_STEP_CHANNEL: if (mpctx->demuxer->stream->type == STREAMTYPE_RADIO) { -- cgit v1.2.3