diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2013-08-12 10:36:22 +0200 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2013-08-12 10:36:22 +0200 |
commit | 8efabca0765f86f5514cc47d9eb15130a0c6b700 (patch) | |
tree | aadb6cecbcfe0df98c116c7abb92740a8d0d73a6 | |
parent | 3a5a98bee241f63be9008a900c484cb427cad51f (diff) |
echo-call: only create a TfChannel if we're not using HardwareStreaming
-rw-r--r-- | src/echo-call.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/echo-call.c b/src/echo-call.c index dc50b78..29e6657 100644 --- a/src/echo-call.c +++ b/src/echo-call.c @@ -44,6 +44,7 @@ typedef struct { GstElement *video_src; EciObjectSkeleton *call_object; EciCallInfo *call_info; + gboolean hardware; } ChannelContext; GMainLoop *loop; @@ -516,7 +517,10 @@ new_call_channel_cb (TpSimpleHandler *handler, context->buswatch = gst_bus_add_watch (bus, bus_watch_cb, context); g_object_unref (bus); - tf_channel_new_async (TP_CHANNEL (call), new_tf_channel_cb, context); + context->hardware = tp_call_channel_has_hardware_streaming (call); + + if (!context->hardware) + tf_channel_new_async (TP_CHANNEL (call), new_tf_channel_cb, context); tp_handle_channels_context_accept (handler_context); |