gst 0.10 doesn't have gst_video_overlay_set_render_rectangle

Change-Id: I499e32ce86fabd18c52ac2f99713af0933572f7c
This commit is contained in:
Caolán McNamara
2019-02-19 10:18:16 +00:00
parent 2080585b0c
commit abd6f2a385

View File

@@ -489,9 +489,10 @@ GstBusSyncReply Player::processSyncMessage( GstMessage *message )
if ( mnWindowID != 0 )
{
gst_video_overlay_set_window_handle( mpXOverlay, mnWindowID );
#ifndef AVMEDIA_GST_0_10
if (maArea.Width > 0 && maArea.Height > 0)
gst_video_overlay_set_render_rectangle(mpXOverlay, maArea.X, maArea.Y, maArea.Width, maArea.Height);
#endif
}
return GST_BUS_DROP;