[telepathy-qt4/master] TelepathyQt4Farsight: Use StremedMediaChannel::handlerStreamingRequired to check if streaming is required.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Tue Apr 21 10:06:13 PDT 2009


---
 TelepathyQt4/Farsight/channel.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/TelepathyQt4/Farsight/channel.cpp b/TelepathyQt4/Farsight/channel.cpp
index f207ce7..a4f28db 100644
--- a/TelepathyQt4/Farsight/channel.cpp
+++ b/TelepathyQt4/Farsight/channel.cpp
@@ -36,6 +36,11 @@ namespace Tp
 
 TfChannel *createFarsightChannel(const StreamedMediaChannelPtr &channel)
 {
+    if (!channel->handlerStreamingRequired()) {
+        warning() << "Handler streaming not required";
+        return 0;
+    }
+
     TpDBusDaemon *dbus = tp_dbus_daemon_dup(0);
 
     if (!dbus) {
-- 
1.5.6.5




More information about the telepathy-commits mailing list