From 043ebca136cfb38fc9ff1610540100729b4c96db Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Fri, 26 Nov 2010 12:32:00 +0000 Subject: FS#8607: MPEG video playlist Add mode to play multiple mpeg files in the same directory in the order the file browser shows. In this mode, Mpegplayer exits after finishing the last .mpg file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28667 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/video_thread.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/plugins/mpegplayer/video_thread.c') diff --git a/apps/plugins/mpegplayer/video_thread.c b/apps/plugins/mpegplayer/video_thread.c index 8feacbdef2..4ccdc8b844 100644 --- a/apps/plugins/mpegplayer/video_thread.c +++ b/apps/plugins/mpegplayer/video_thread.c @@ -503,6 +503,12 @@ static void video_thread_msg(struct video_thread_data *td) reply = true; break; + case STREAM_CLOSE: + vo_cleanup(); + mpeg2_close(td->mpeg2dec); + reply = true; + break; + case VIDEO_DISPLAY_IS_VISIBLE: reply = vo_is_visible(); break; -- cgit v1.2.3