From 4f6b3b7bbdd3d6cdf82a19ae57572eebf2eca623 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 29 Jun 2012 12:03:51 +0100 Subject: [PATCH] sys: make video sinks default to force-aspect-ratio=true --- sys/d3dvideosink/d3dvideosink.c | 2 +- sys/directdraw/gstdirectdrawsink.c | 2 +- sys/dshowvideosink/dshowvideosink.cpp | 2 +- sys/pvr2d/gstpvrvideosink.c | 2 +- sys/vdpau/gstvdpvideopostprocess.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/d3dvideosink/d3dvideosink.c b/sys/d3dvideosink/d3dvideosink.c index e00ea6e..45cc984 100644 --- a/sys/d3dvideosink/d3dvideosink.c +++ b/sys/d3dvideosink/d3dvideosink.c @@ -264,7 +264,7 @@ gst_d3dvideosink_class_init (GstD3DVideoSinkClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_KEEP_ASPECT_RATIO, g_param_spec_boolean ("force-aspect-ratio", "Force aspect ratio", - "When enabled, scaling will respect original aspect ratio", FALSE, + "When enabled, scaling will respect original aspect ratio", TRUE, (GParamFlags) G_PARAM_READWRITE)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_PIXEL_ASPECT_RATIO, g_param_spec_string ("pixel-aspect-ratio", diff --git a/sys/directdraw/gstdirectdrawsink.c b/sys/directdraw/gstdirectdrawsink.c index 08bb9e0..70cc503 100644 --- a/sys/directdraw/gstdirectdrawsink.c +++ b/sys/directdraw/gstdirectdrawsink.c @@ -429,7 +429,7 @@ gst_directdraw_sink_class_init (GstDirectDrawSinkClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_KEEP_ASPECT_RATIO, g_param_spec_boolean ("force-aspect-ratio", "Force aspect ratio", - "When enabled, scaling will respect original aspect ratio", FALSE, + "When enabled, scaling will respect original aspect ratio", TRUE, G_PARAM_READWRITE)); } diff --git a/sys/dshowvideosink/dshowvideosink.cpp b/sys/dshowvideosink/dshowvideosink.cpp index 6458b63..d166d98 100644 --- a/sys/dshowvideosink/dshowvideosink.cpp +++ b/sys/dshowvideosink/dshowvideosink.cpp @@ -263,7 +263,7 @@ gst_dshowvideosink_class_init (GstDshowVideoSinkClass * klass) g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_KEEP_ASPECT_RATIO, g_param_spec_boolean ("force-aspect-ratio", "Force aspect ratio", - "When enabled, scaling will respect original aspect ratio", FALSE, + "When enabled, scaling will respect original aspect ratio", TRUE, (GParamFlags)G_PARAM_READWRITE)); g_object_class_install_property (G_OBJECT_CLASS (klass), PROP_FULL_SCREEN, g_param_spec_boolean ("fullscreen", diff --git a/sys/pvr2d/gstpvrvideosink.c b/sys/pvr2d/gstpvrvideosink.c index 19cbad6..b0963cb 100644 --- a/sys/pvr2d/gstpvrvideosink.c +++ b/sys/pvr2d/gstpvrvideosink.c @@ -1457,7 +1457,7 @@ gst_pvrvideosink_class_init (GstPVRVideoSinkClass * klass) g_object_class_install_property (gobject_class, PROP_FORCE_ASPECT_RATIO, g_param_spec_boolean ("force-aspect-ratio", "Force aspect ratio", "When enabled, reverse caps negotiation (scaling) will respect " - "original aspect ratio", FALSE, + "original aspect ratio", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); gst_element_class_set_details_simple (gstelement_class, diff --git a/sys/vdpau/gstvdpvideopostprocess.c b/sys/vdpau/gstvdpvideopostprocess.c index ced168f..15a1656 100644 --- a/sys/vdpau/gstvdpvideopostprocess.c +++ b/sys/vdpau/gstvdpvideopostprocess.c @@ -1219,7 +1219,7 @@ gst_vdp_vpp_class_init (GstVdpVideoPostProcessClass * klass) g_object_class_install_property (gobject_class, PROP_FORCE_ASPECT_RATIO, g_param_spec_boolean ("force-aspect-ratio", "Force aspect ratio", "When enabled, the plugin will only scale up the input surface to the" - "maximum size where the aspect ratio can be preserved", FALSE, + "maximum size where the aspect ratio can be preserved", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_DEINTERLACE_MODE, -- 2.7.4