summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-12-19 15:15:07 +0000
committerphintuka <phintuka>2008-12-19 15:15:07 +0000
commitd9cafb37d27b0b22c21202f0242c4ff6949f6a85 (patch)
tree52984037f0fa0e04f9bc1a04f552699085d6c97e
parent86509942df2cace95c04936bf51be87de677c8bc (diff)
downloadxineliboutput-d9cafb37d27b0b22c21202f0242c4ff6949f6a85.tar.gz
xineliboutput-d9cafb37d27b0b22c21202f0242c4ff6949f6a85.tar.bz2
Set size field when sending OSD command
-rw-r--r--frontend_svr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend_svr.c b/frontend_svr.c
index 06f71386..b16e1fa9 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.63 2008-11-18 15:07:11 phintuka Exp $
+ * $Id: frontend_svr.c,v 1.64 2008-12-19 15:15:07 phintuka Exp $
*
*/
@@ -257,6 +257,8 @@ static int write_osd_command(cxSocket& s, osd_command_t *cmd)
return 0;
}
+ cmd->size = sizeof(osd_command_t);
+
if(8 != s.write("OSDCMD\r\n", 8, 100)) {
LOGDBG("write_osd_command: write (command) failed");
return -1;