diff options
author | phintuka <phintuka> | 2008-11-21 20:15:06 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2008-11-21 20:15:06 +0000 |
commit | 250a69996bad2ad89e89ad1304cfcdbfc2d2ef52 (patch) | |
tree | e0beda23c11d067a7645bc6e7f57e4c48534b40d | |
parent | 35d5bb15b8007101d137b80e6ac702ec7afdb8fe (diff) | |
download | xineliboutput-250a69996bad2ad89e89ad1304cfcdbfc2d2ef52.tar.gz xineliboutput-250a69996bad2ad89e89ad1304cfcdbfc2d2ef52.tar.bz2 |
Set OSD size to video_out if scaling is supported
-rw-r--r-- | xine_input_vdr.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 95bd6898..bdc117c0 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.197 2008-11-21 20:14:23 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.198 2008-11-21 20:15:06 phintuka Exp $ * */ @@ -61,6 +61,8 @@ # endif #endif +#include "xine/vo_props.h" + #include "xine_input_vdr.h" #include "xine_input_vdr_net.h" #include "xine_osd_command.h" @@ -2086,6 +2088,12 @@ static int exec_osd_command(vdr_input_plugin_t *this, osd_command_t *cmd) this->vdr_osd_width = cmd->w; this->vdr_osd_height = cmd->h; + if(stream->video_out->get_capabilities(stream->video_out) & + VO_CAP_OSDSCALING) { + stream->video_out->set_property(stream->video_out, VO_PROP_OSD_WIDTH, cmd->w); + stream->video_out->set_property(stream->video_out, VO_PROP_OSD_HEIGHT, cmd->h); + } + } else if(cmd->cmd == OSD_Nop) { this->last_changed_vpts[cmd->wnd] = xine_get_current_vpts(stream); |