diff options
Diffstat (limited to 'xine_input_vdr.c')
-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); |