diff options
author | phintuka <phintuka> | 2008-12-14 23:00:18 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-12-14 23:00:18 +0000 |
commit | d808db7f3bc00ef6e33c3e4db13b26b61f89584c (patch) | |
tree | 06dacdc85ec7df3d72eaae6ce9a10b2d1a86f0cc | |
parent | d195027f705484b6f93e6a096827966deaabbd3e (diff) | |
download | xineliboutput-d808db7f3bc00ef6e33c3e4db13b26b61f89584c.tar.gz xineliboutput-d808db7f3bc00ef6e33c3e4db13b26b61f89584c.tar.bz2 |
Fixed setting palette type
-rw-r--r-- | xine/osd_manager.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xine/osd_manager.c b/xine/osd_manager.c index 652aaecc..ca1bb641 100644 --- a/xine/osd_manager.c +++ b/xine/osd_manager.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: osd_manager.c,v 1.2 2008-12-13 23:33:21 phintuka Exp $ + * $Id: osd_manager.c,v 1.3 2008-12-14 23:00:18 phintuka Exp $ * */ @@ -354,10 +354,11 @@ static int exec_osd_set_rle(osd_manager_impl_t *this, osd_command_t *cmd) /* RGB -> YUV */ if(!(cmd->flags & OSDFLAG_YUV_CLUT)) palette_argb_to_ayuv(cmd->palette, cmd->colors); - cmd->flags &= ~OSDFLAG_YUV_CLUT; + cmd->flags |= OSDFLAG_YUV_CLUT; osd->cmd.palette = malloc(sizeof(xine_clut_t)*cmd->colors); memcpy(osd->cmd.palette, cmd->palette, 4*cmd->colors); + osd->cmd.flags |= OSDFLAG_YUV_CLUT; } /* request OSD scaling from video_out layer */ |