Merge pull request #4021 from scroogie/master

Fix compilation on RHEL 6.x by macro-guarding two functions
This commit is contained in:
David Fort
2017-07-07 15:08:06 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -109,7 +109,11 @@ static GstBusSyncReply tsmf_platform_bus_sync_handler(GstBus *bus, GstMessage *m
gst_video_overlay_handle_events(hdl->overlay, TRUE);
#else
hdl->overlay = GST_X_OVERLAY (GST_MESSAGE_SRC (message));
#if GST_CHECK_VERSION(0,10,31)
gst_x_overlay_set_window_handle(hdl->overlay, hdl->subwin);
#else
gst_x_overlay_set_xwindow_id(hdl->overlay, hdl->subwin);
#endif
gst_x_overlay_handle_events(hdl->overlay, TRUE);
#endif

View File

@@ -1020,10 +1020,14 @@ ITSMFDecoder* freerdp_tsmf_client_subsystem_entry(void)
{
TSMFGstreamerDecoder *decoder;
#if GST_CHECK_VERSION(0,10,31)
if (!gst_is_initialized())
{
gst_init(NULL, NULL);
}
#else
gst_init(NULL, NULL);
#endif
decoder = calloc(1, sizeof(TSMFGstreamerDecoder));