[telepathy-qt4/master] callable cm: Proper check if direction changed when requesting stream direction change.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Tue Sep 22 16:05:39 PDT 2009
Check against TP_MEDIA_STREAM_DIRECTION_SEND instead of
TP_MEDIA_STREAM_DIRECTION_RECEIVE to check if sending is required.
---
tests/lib/callable/media-stream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/lib/callable/media-stream.c b/tests/lib/callable/media-stream.c
index 3290029..4c19e10 100644
--- a/tests/lib/callable/media-stream.c
+++ b/tests/lib/callable/media-stream.c
@@ -452,7 +452,7 @@ example_callable_media_stream_change_direction (
gboolean receiving =
((self->priv->direction & TP_MEDIA_STREAM_DIRECTION_RECEIVE) != 0);
gboolean want_to_send =
- ((direction & TP_MEDIA_STREAM_DIRECTION_RECEIVE) != 0);
+ ((direction & TP_MEDIA_STREAM_DIRECTION_SEND) != 0);
gboolean want_to_receive =
((direction & TP_MEDIA_STREAM_DIRECTION_RECEIVE) != 0);
gboolean pending_remote_send =
--
1.5.6.5
More information about the telepathy-commits
mailing list