[empathy/gnome-2-28] Use the proper enum value when checking FsMediaType



commit b6d74e4da3a4369cba33f82d2230ee5b78ff07c5
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jan 13 10:07:02 2010 +0000

    Use the proper enum value when checking FsMediaType
    
    FS_MEDIA_TYPE_VIDEO and TP_MEDIA_STREAM_TYPE_VIDEO have actually the same
    value but newer versions of gcc are smarter and detect this kind of bug.

 src/empathy-call-window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 0644a14..0046543 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1194,7 +1194,7 @@ empathy_call_window_request_resource_cb (EmpathyCallHandler *handler,
   EmpathyCallWindow *self = EMPATHY_CALL_WINDOW (user_data);
   EmpathyCallWindowPriv *priv = GET_PRIV (self);
 
-  if (type != TP_MEDIA_STREAM_TYPE_VIDEO)
+  if (type != FS_MEDIA_TYPE_VIDEO)
     return TRUE;
 
   if (direction == FS_DIRECTION_RECV)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]