[telepathy-glib/master] callable example: Proper check if direction changed when requesting stream direction change.
Andre Moreira Magalhaes (andrunko)
andrunko at andrunko.cbg.collabora.co.uk
Wed Sep 23 06:57:58 PDT 2009
Check against TP_MEDIA_STREAM_DIRECTION_SEND instead of
TP_MEDIA_STREAM_DIRECTION_RECEIVE to check if sending is required.
---
examples/cm/callable/media-stream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/examples/cm/callable/media-stream.c b/examples/cm/callable/media-stream.c
index 3290029..4c19e10 100644
--- a/examples/cm/callable/media-stream.c
+++ b/examples/cm/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