summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-27 18:39:57 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-27 18:39:57 +0000
commitbc212e3500ef776f849a9ee6c04dfaa4994c62f6 (patch)
treedb17bd96a83006cdbc73509954b4a39066749b9f /mplayer.c
parentcc6c63c03c6eb5e5913c9795bfb13c5284ad24de (diff)
downloadmpv-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index aaad77cb51..bfe6f695c8 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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;
}