diff options
author | phintuka <phintuka> | 2009-08-19 17:03:49 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-08-19 17:03:49 +0000 |
commit | 2d102a8300c41d023590b6ed0515a0acf9cbc3b5 (patch) | |
tree | 474f1808947f72fc8a5124e26737bfbea45e4475 | |
parent | af34d990a44149f2dcc39d0cce1894de1357cc2d (diff) | |
download | xineliboutput-2d102a8300c41d023590b6ed0515a0acf9cbc3b5.tar.gz xineliboutput-2d102a8300c41d023590b6ed0515a0acf9cbc3b5.tar.bz2 |
Parse window size messages
-rw-r--r-- | frontend.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend.c,v 1.73 2009-08-18 12:54:48 phintuka Exp $ + * $Id: frontend.c,v 1.74 2009-08-19 17:03:49 phintuka Exp $ * */ @@ -209,6 +209,16 @@ void cXinelibThread::InfoHandler(const char *info) cXinelibDevice::Instance().SetCurrentSubtitleTrack(ttSubtitleFirst); } + else if (!strncmp(info, "WINDOW ", 7)) { + int w, h; + map += 7; + while(*map == ' ') map++; + if (2 == sscanf(map, "%dx%d", &w, &h)) { + xc.osd_width_auto = w; + xc.osd_height_auto = h; + } + } + free(pmap); } |