1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Michael Sevakis 2010-12-19 08:28:03 +00:00
parent fd01bf3e4c
commit 31af1a3ac2
5 changed files with 124 additions and 126 deletions

View file

@ -116,9 +116,11 @@ static inline void yuv_blit(uint8_t * const * buf, int src_x, int src_y,
void vo_draw_frame(uint8_t * const * buf)
{
if (vo.flags == 0)
if ((vo.flags & (VO_NON_NULL_RECT | VO_VISIBLE)) !=
(VO_NON_NULL_RECT | VO_VISIBLE))
{
/* Frame is hidden - copout */
/* Frame is hidden - either by being set invisible or is clipped
* away - copout */
DEBUGF("vo hidden\n");
return;
}