diff options
author | phintuka <phintuka> | 2009-03-17 12:19:19 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-03-17 12:19:19 +0000 |
commit | 7e62889aadf1f04410e0865c08764ea5efdbb679 (patch) | |
tree | fe390c1b2fac3bcc35039af92e6628f012e62fbc | |
parent | d7407c3a331bb99ad7cdbf234bae1fe98c5b208a (diff) | |
download | xineliboutput-7e62889aadf1f04410e0865c08764ea5efdbb679.tar.gz xineliboutput-7e62889aadf1f04410e0865c08764ea5efdbb679.tar.bz2 |
Removed setting deprecated properties (global OSD size).
Set custom extent only when scaling is enabled.
Pass scaling setting upstream.
-rw-r--r-- | xine/osd_manager.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/xine/osd_manager.c b/xine/osd_manager.c index e3127024..7b38baf2 100644 --- a/xine/osd_manager.c +++ b/xine/osd_manager.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: osd_manager.c,v 1.10 2009-03-16 09:38:23 phintuka Exp $ + * $Id: osd_manager.c,v 1.11 2009-03-17 12:19:19 phintuka Exp $ * */ @@ -249,8 +249,6 @@ static int exec_osd_size(osd_manager_impl_t *this, osd_command_t *cmd) xine_video_port_t *video_out = this->stream->video_out; this->vo_scaling = 0; if (video_out->get_capabilities(video_out) & VO_CAP_OSDSCALING) { - video_out->set_property(video_out, VO_PROP_OSD_WIDTH, cmd->w); - video_out->set_property(video_out, VO_PROP_OSD_HEIGHT, cmd->h); this->vo_scaling = 1; } @@ -443,9 +441,12 @@ static int exec_osd_set_rle(osd_manager_impl_t *this, osd_command_t *cmd) extra_data->extent_width = osd->extent_width; extra_data->extent_height = osd->extent_height; extra_data->layer = cmd->layer; + extra_data->scaling = cmd->scaling; #ifdef VO_CAP_CUSTOM_EXTENT_OVERLAY - ov_overlay.extent_width = osd->extent_width; - ov_overlay.extent_height = osd->extent_height; + if (cmd->scaling) { + ov_overlay.extent_width = osd->extent_width; + ov_overlay.extent_height = osd->extent_height; + } #endif /* if no scaling was required, we may still need to re-center OSD */ |