summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/video_out_rockbox.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-12-19 08:28:03 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-12-19 08:28:03 +0000
commit31af1a3ac21646c8f07b1b93e497d45a060ee36d (patch)
tree30b7541bd15a3291311c8d1b48b1b6a95d7a1ba5 /apps/plugins/mpegplayer/video_out_rockbox.c
parentfd01bf3e4cfedf073824b1a98662932796b6cd32 (diff)
downloadrockbox-31af1a3ac21646c8f07b1b93e497d45a060ee36d.tar.gz
rockbox-31af1a3ac21646c8f07b1b93e497d45a060ee36d.zip
MPEGPlayer: Move some code that's probably better situated in the stream manager rather than the parser. Fix visibility checking in video out. Extra message sending for new stream isn't needed; just do full decoder sequence reset when requesting dimensions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28855 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/video_out_rockbox.c')
-rw-r--r--apps/plugins/mpegplayer/video_out_rockbox.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/mpegplayer/video_out_rockbox.c b/apps/plugins/mpegplayer/video_out_rockbox.c
index cf47982ab7..fe3deafd01 100644
--- a/apps/plugins/mpegplayer/video_out_rockbox.c
+++ b/apps/plugins/mpegplayer/video_out_rockbox.c
@@ -116,9 +116,11 @@ static inline void yuv_blit(uint8_t * const * buf, int src_x, int src_y,
116 116
117void vo_draw_frame(uint8_t * const * buf) 117void vo_draw_frame(uint8_t * const * buf)
118{ 118{
119 if (vo.flags == 0) 119 if ((vo.flags & (VO_NON_NULL_RECT | VO_VISIBLE)) !=
120 (VO_NON_NULL_RECT | VO_VISIBLE))
120 { 121 {
121 /* Frame is hidden - copout */ 122 /* Frame is hidden - either by being set invisible or is clipped
123 * away - copout */
122 DEBUGF("vo hidden\n"); 124 DEBUGF("vo hidden\n");
123 return; 125 return;
124 } 126 }