summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Thommeret <hftom@free.fr>2008-12-27 20:37:12 +0000
committerChristophe Thommeret <hftom@free.fr>2008-12-27 20:37:12 +0000
commit24834b674da33c0c36c71b8dda94254a14562e73 (patch)
treeebb7788b041c3f8cdfcff6661f856203d3b6dac1
parent92d89235ad1e8a413422947b92b957a5453950ea (diff)
downloadxine-lib-24834b674da33c0c36c71b8dda94254a14562e73.tar.gz
xine-lib-24834b674da33c0c36c71b8dda94254a14562e73.tar.bz2
User aspect ratio.
-rw-r--r--src/video_out/video_out_vdpau.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c
index 190e671b3..4daddb2d2 100644
--- a/src/video_out/video_out_vdpau.c
+++ b/src/video_out/video_out_vdpau.c
@@ -906,6 +906,12 @@ static int vdpau_set_property (vo_driver_t *this_gen, int property, int value)
this->sc.force_redraw = 1; //* trigger re-calc of output size
}
break;*/
+ case VO_PROP_ASPECT_RATIO:
+ if ( value>=XINE_VO_ASPECT_NUM_RATIOS )
+ value = XINE_VO_ASPECT_AUTO;
+ this->sc.user_ratio = value;
+ this->sc.force_redraw = 1; /* trigger re-calc of output size */
+ break;
case VO_PROP_HUE: this->hue = value; vdpau_update_csc( this ); break;
case VO_PROP_SATURATION: this->saturation = value; vdpau_update_csc( this ); break;
case VO_PROP_CONTRAST: this->contrast = value; vdpau_update_csc( this ); break;