From c5c09d7a6a0161b66f1747e3496cb1365f6f35bc Mon Sep 17 00:00:00 2001 From: Jonathan Tellier Date: Fri, 5 Jun 2009 14:56:09 -0400 Subject: Not creating the video preview if we don't want to show it (in audio calls for instance). --- libempathy/empathy-call-handler.c | 17 +++++++++++++++++ libempathy/empathy-call-handler.h | 2 ++ 2 files changed, 19 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c index 6d7f35102..e5203f5fb 100644 --- a/libempathy/empathy-call-handler.c +++ b/libempathy/empathy-call-handler.c @@ -617,4 +617,21 @@ empathy_call_handler_stop_call (EmpathyCallHandler *handler) } priv->call = NULL; +} + +/** + * empathy_call_handler_has_initial_video: + * @handler: an #EmpathyCallHandler + * + * Determines if the call managed by this #EmpathyCallHandler was created as + * a video conversation. + * + * Return value: TRUE if the call was created as a video conversation. + */ +gboolean +empathy_call_handler_has_initial_video (EmpathyCallHandler *handler) +{ + EmpathyCallHandlerPriv *priv = GET_PRIV (handler); + + return priv->initial_video; } \ No newline at end of file diff --git a/libempathy/empathy-call-handler.h b/libempathy/empathy-call-handler.h index 112a3139a..1f67fe56b 100644 --- a/libempathy/empathy-call-handler.h +++ b/libempathy/empathy-call-handler.h @@ -73,6 +73,8 @@ EmpathyCallHandler * empathy_call_handler_new_for_channel ( void empathy_call_handler_start_call (EmpathyCallHandler *handler); void empathy_call_handler_stop_call (EmpathyCallHandler *handler); +gboolean empathy_call_handler_has_initial_video (EmpathyCallHandler *handler); + void empathy_call_handler_bus_message (EmpathyCallHandler *handler, GstBus *bus, GstMessage *message); -- cgit v1.2.3