diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-01-03 17:14:28 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-01-03 17:14:28 +0000 |
commit | a5fc3f4df4bec2b6ae1c22fb83cf495f31773122 (patch) | |
tree | ba78abac0ee9e5d564907d9e8bee4020d98cb9a8 /apps/plugins/mpegplayer/mpeg_parser.c | |
parent | d1cb32a93f26ef42ae864b911bbd425c49cc4109 (diff) | |
download | rockbox-a5fc3f4df4bec2b6ae1c22fb83cf495f31773122.tar.gz rockbox-a5fc3f4df4bec2b6ae1c22fb83cf495f31773122.zip |
Initial WVS for mpegplayer. Adjusts to the user's preferred font and uses FF/RW preferences set for playback. Picked a random color for the base WVS color but it could be configured. Some engine tweaks to accomodate it since certain nescessities are clearer now. Fix a clipped YUV output bug in the SIM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15991 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_parser.c')
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_parser.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_parser.c b/apps/plugins/mpegplayer/mpeg_parser.c index d4b0ff10fb..5b863dabac 100644 --- a/apps/plugins/mpegplayer/mpeg_parser.c +++ b/apps/plugins/mpegplayer/mpeg_parser.c | |||
@@ -1012,15 +1012,17 @@ intptr_t parser_send_video_msg(long id, intptr_t data) | |||
1012 | switch (id) | 1012 | switch (id) |
1013 | { | 1013 | { |
1014 | case VIDEO_DISPLAY_SHOW: | 1014 | case VIDEO_DISPLAY_SHOW: |
1015 | if (data != 0 && stream_status() != STREAM_PLAYING) | 1015 | if (data != 0 && disk_buf_status() == STREAM_STOPPED) |
1016 | { /* Only prepare image if showing and not playing */ | 1016 | { /* Only prepare image if showing and not playing */ |
1017 | prepare_image(str_parser.last_seek_time); | 1017 | prepare_image(str_parser.last_seek_time); |
1018 | } | 1018 | } |
1019 | break; | 1019 | break; |
1020 | 1020 | ||
1021 | case VIDEO_PRINT_FRAME: | 1021 | case VIDEO_PRINT_FRAME: |
1022 | if (data) | ||
1023 | break; | ||
1022 | case VIDEO_PRINT_THUMBNAIL: | 1024 | case VIDEO_PRINT_THUMBNAIL: |
1023 | if (stream_status() == STREAM_PLAYING) | 1025 | if (disk_buf_status() != STREAM_STOPPED) |
1024 | break; /* Prepare image if not playing */ | 1026 | break; /* Prepare image if not playing */ |
1025 | 1027 | ||
1026 | if (!prepare_image(str_parser.last_seek_time)) | 1028 | if (!prepare_image(str_parser.last_seek_time)) |