Kaydet (Commit) abd6f2a3 authored tarafından Caolán McNamara's avatar Caolán McNamara

gst 0.10 doesn't have gst_video_overlay_set_render_rectangle

Change-Id: I499e32ce86fabd18c52ac2f99713af0933572f7c
üst 2080585b
...@@ -489,9 +489,10 @@ GstBusSyncReply Player::processSyncMessage( GstMessage *message ) ...@@ -489,9 +489,10 @@ GstBusSyncReply Player::processSyncMessage( GstMessage *message )
if ( mnWindowID != 0 ) if ( mnWindowID != 0 )
{ {
gst_video_overlay_set_window_handle( mpXOverlay, mnWindowID ); gst_video_overlay_set_window_handle( mpXOverlay, mnWindowID );
#ifndef AVMEDIA_GST_0_10
if (maArea.Width > 0 && maArea.Height > 0) if (maArea.Width > 0 && maArea.Height > 0)
gst_video_overlay_set_render_rectangle(mpXOverlay, maArea.X, maArea.Y, maArea.Width, maArea.Height); gst_video_overlay_set_render_rectangle(mpXOverlay, maArea.X, maArea.Y, maArea.Width, maArea.Height);
#endif
} }
return GST_BUS_DROP; return GST_BUS_DROP;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment