Skip to content

Commit

Permalink
Fix compilation on RHEL 6.x by macro-guarding two functions that were
Browse files Browse the repository at this point in the history
added in gstreamer 0.10.31 (RHEL 6.x being on 0.10.29).
  • Loading branch information
Andre Gemuend committed Jun 27, 2017
1 parent 9904c32 commit 512d8a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions channels/tsmf/client/gstreamer/tsmf_X11.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions channels/tsmf/client/gstreamer/tsmf_gstreamer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit 512d8a8

Please sign in to comment.