diff options
author | Jonathan Tellier <jonathan.tellier@gmail.com> | 2009-06-06 02:56:09 +0800 |
---|---|---|
committer | jtellier <jonathan.tellier@collabora.co.uk> | 2009-06-12 20:59:10 +0800 |
commit | c5c09d7a6a0161b66f1747e3496cb1365f6f35bc (patch) | |
tree | ac435fe3e11633393cc9b0811a34375a51625a9f /libempathy | |
parent | d9a8b7a80525e4faa908c5eb0bf1f8fb89c49dfe (diff) | |
download | gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar.gz gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar.bz2 gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar.lz gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar.xz gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar.zst gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.zip |
Not creating the video preview if we don't want to show it (in audio
calls for instance).
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-call-handler.c | 17 | ||||
-rw-r--r-- | libempathy/empathy-call-handler.h | 2 |
2 files changed, 19 insertions, 0 deletions
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); |