diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-02-19 10:18:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-02-19 10:18:16 +0000 |
commit | abd6f2a38506f512d4846cf43a9fc9576d96ceb3 (patch) | |
tree | 9a2ca7fd661e96b0596ceef9be1783038e2b1402 /avmedia | |
parent | 2080585b0c4a2240b0c65415339149bc2b20fa82 (diff) |
gst 0.10 doesn't have gst_video_overlay_set_render_rectangle
Change-Id: I499e32ce86fabd18c52ac2f99713af0933572f7c
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index 581e40dd8d37..8469fd7544ff 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -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; |