From 24834b674da33c0c36c71b8dda94254a14562e73 Mon Sep 17 00:00:00 2001 From: Christophe Thommeret Date: Sat, 27 Dec 2008 20:37:12 +0000 Subject: User aspect ratio. --- src/video_out/video_out_vdpau.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; -- cgit v1.2.3