From 0ce4b5cb85a88f8c5463db14cea3dd28088c5abf Mon Sep 17 00:00:00 2001 From: Jakub Adam Date: Tue, 19 Mar 2019 16:39:20 +0100 Subject: [PATCH] videosource: Expose video-direction child property --- ges/ges-video-source.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ges/ges-video-source.c b/ges/ges-video-source.c index 2006f6890b..d8b4a4ad2d 100644 --- a/ges/ges-video-source.c +++ b/ges/ges-video-source.c @@ -73,6 +73,11 @@ * deinterlace-tff * Deinterlace top field first * + * + * GstVideoOrientationMethod + * video-direction + * The desired video rotation and flipping. + * * * * @@ -141,6 +146,7 @@ ges_video_source_create_element (GESTrackElement * trksrc) const gchar *positioner_props[] = { "alpha", "posx", "posy", "width", "height", NULL }; const gchar *deinterlace_props[] = { "mode", "fields", "tff", NULL }; + const gchar *videoflip_props[] = { "video-direction", NULL }; if (!source_class->create_source) return NULL; @@ -174,6 +180,8 @@ ges_video_source_create_element (GESTrackElement * trksrc) ges_track_element_add_children_props (trksrc, positioner, NULL, NULL, positioner_props); + ges_track_element_add_children_props (trksrc, videoflip, NULL, NULL, + videoflip_props); if (deinterlace == NULL) { post_missing_element_message (sub_element, "deinterlace");