summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpeg_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg_parser.c')
-rw-r--r--apps/plugins/mpegplayer/mpeg_parser.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_parser.c b/apps/plugins/mpegplayer/mpeg_parser.c
index 167f07da5c..0259bc9865 100644
--- a/apps/plugins/mpegplayer/mpeg_parser.c
+++ b/apps/plugins/mpegplayer/mpeg_parser.c
@@ -1032,7 +1032,28 @@ intptr_t parser_send_video_msg(long id, intptr_t data)
1032 break; 1032 break;
1033 } 1033 }
1034 1034
1035 retval = str_send_msg(&video_str, id, data); 1035 switch (id)
1036 {
1037#ifdef GRAY_CACHE_MAINT
1038 /* This must be done internally here or refresh may be delayed far
1039 * too long */
1040 case VIDEO_DISPLAY_SHOW:
1041 case VIDEO_PRINT_FRAME:
1042 case VIDEO_PRINT_THUMBNAIL:
1043 stream_gray_pause(true);
1044
1045 GRAY_INVALIDATE_ICACHE();
1046
1047 retval = str_send_msg(&video_str, id, data);
1048
1049 GRAY_VIDEO_FLUSH_ICACHE();
1050
1051 stream_gray_pause(false);
1052 break;
1053#endif
1054 default:
1055 retval = str_send_msg(&video_str, id, data);
1056 }
1036 } 1057 }
1037 1058
1038 return retval; 1059 return retval;