diff options
author | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-27 18:39:57 +0000 |
---|---|---|
committer | ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-05-27 18:39:57 +0000 |
commit | bc212e3500ef776f849a9ee6c04dfaa4994c62f6 (patch) | |
tree | db17bd96a83006cdbc73509954b4a39066749b9f /mplayer.c | |
parent | cc6c63c03c6eb5e5913c9795bfb13c5284ad24de (diff) | |
download | mpv-bc212e3500ef776f849a9ee6c04dfaa4994c62f6.tar.bz2 mpv-bc212e3500ef776f849a9ee6c04dfaa4994c62f6.tar.xz |
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
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3998,6 +3998,9 @@ if(mpctx->eof == PT_NEXT_ENTRY || mpctx->eof == PT_PREV_ENTRY) { mpctx->playtree_iter = NULL; } } +} else if (mpctx->eof == PT_STOP) { + play_tree_iter_free(mpctx->playtree_iter); + mpctx->playtree_iter = NULL; } else { // NEXT PREV SRC mpctx->eof = mpctx->eof == PT_PREV_SRC ? -1 : 1; } |