diff options
author | Thibault Saunier <tsaunier@gnome.org> | 2015-10-07 23:57:05 +0200 |
---|---|---|
committer | Thibault Saunier <tsaunier@gnome.org> | 2015-10-18 19:00:12 +0200 |
commit | b13816d0a69daa21733910822de7f43b1f6941c9 (patch) | |
tree | 195e3c94ba34e179e6dce0b5316630339746d83d | |
parent | 1472b7b3b3467a62a0b56718142a9f25a0a14edb (diff) |
videosource: Force aspect-ratio=1/1 as compositor does not properly handle different values yet
Working around https://bugzilla.gnome.org/show_bug.cgi?id=756207 for 1.6
Fixes T3349
-rw-r--r-- | ges/gstframepositionner.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ges/gstframepositionner.c b/ges/gstframepositionner.c index 9d2ece4207..805dad6c6a 100644 --- a/ges/gstframepositionner.c +++ b/ges/gstframepositionner.c @@ -87,9 +87,11 @@ gst_frame_positionner_update_properties (GstFramePositionner * pos, if (pos->track_width && pos->track_height) { caps = gst_caps_new_simple ("video/x-raw", "width", G_TYPE_INT, - pos->track_width, "height", G_TYPE_INT, pos->track_height, NULL); + pos->track_width, "height", G_TYPE_INT, pos->track_height, + "pixel-aspect-ratio", GST_TYPE_FRACTION, 1, 1, NULL); } else { - caps = gst_caps_new_empty_simple ("video/x-raw"); + caps = gst_caps_new_simple ("video/x-raw", + "pixel-aspect-ratio", GST_TYPE_FRACTION, 1, 1, NULL); } if (pos->fps_n != -1) |