diff options
Diffstat (limited to 'frontend_svr.c')
-rw-r--r-- | frontend_svr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontend_svr.c b/frontend_svr.c index 49665553..1173d994 100644 --- a/frontend_svr.c +++ b/frontend_svr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend_svr.c,v 1.107 2012-03-18 12:22:25 phintuka Exp $ + * $Id: frontend_svr.c,v 1.108 2014-06-23 12:14:15 phintuka Exp $ * */ @@ -255,7 +255,7 @@ static int write_osd_command(cxSocket& s, osd_command_t *cmd) ssize_t max = s.tx_buffer_free(); ssize_t size = (ssize_t)8 + (ssize_t)(sizeof(osd_command_t)) + - (ssize_t)(sizeof(xine_clut_t) * ntohl(cmd->colors)) + + (ssize_t)(sizeof(osd_clut_t) * ntohl(cmd->colors)) + (ssize_t)(ntohl(cmd->datalen)); if(max > 0 && max < MIN(size, 1024)) { @@ -279,8 +279,8 @@ static int write_osd_command(cxSocket& s, osd_command_t *cmd) return -1; } if(cmd->palette && cmd->colors && - (ssize_t)(sizeof(xine_clut_t)*ntohl(cmd->colors)) != - s.write(cmd->palette, sizeof(xine_clut_t)*ntohl(cmd->colors), 100)) { + (ssize_t)(sizeof(osd_clut_t)*ntohl(cmd->colors)) != + s.write(cmd->palette, sizeof(osd_clut_t)*ntohl(cmd->colors), 100)) { LOGDBG("write_osd_command: write (palette) failed"); return -1; } |