[Telepathy-commits] [telepathy-qt4/master] StreamedMediaChannel: Changed default stream direction/state when none is informed.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Tue Mar 17 01:57:53 PDT 2009


Note: Let's use sensible defaults for now, this needs to be fixed.
---
 TelepathyQt4/Client/streamed-media-channel.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt4/Client/streamed-media-channel.cpp b/TelepathyQt4/Client/streamed-media-channel.cpp
index a66814f..8d01c95 100644
--- a/TelepathyQt4/Client/streamed-media-channel.cpp
+++ b/TelepathyQt4/Client/streamed-media-channel.cpp
@@ -666,8 +666,8 @@ void StreamedMediaChannel::onStreamAdded(uint streamId,
                 contactHandle,
                 (Telepathy::MediaStreamType) streamType,
                 // TODO where to get this info from?
-                Telepathy::MediaStreamStateDisconnected,
-                Telepathy::MediaStreamDirectionNone,
+                Telepathy::MediaStreamStateConnected,
+                (Telepathy::MediaStreamDirection) (Telepathy::MediaStreamDirectionSend | Telepathy::MediaStreamDirectionReceive),
                 (Telepathy::MediaStreamPendingSend) 0));
     mPriv->streams.insert(streamId, stream);
     PendingMediaStreams *pms = new PendingMediaStreams(this,
-- 
1.5.6.5




More information about the telepathy-commits mailing list