[ekiga] Ekiga: Prevent Ekiga from running if mandatory codecs are absent.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Ekiga: Prevent Ekiga from running if mandatory codecs are absent.
- Date: Tue, 30 Dec 2014 17:08:06 +0000 (UTC)
commit 62316008e5b2f60ab7ae089880a55a48dd4bf902
Author: Damien Sandras <dsandras seconix com>
Date: Tue Dec 30 16:21:20 2014 +0100
Ekiga: Prevent Ekiga from running if mandatory codecs are absent.
This will prevent packagers from forgetting codec plugins.
lib/engine/gui/gtk-frontend/ekiga-app.cpp | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/ekiga-app.cpp b/lib/engine/gui/gtk-frontend/ekiga-app.cpp
index 9825b45..7a07ff3 100644
--- a/lib/engine/gui/gtk-frontend/ekiga-app.cpp
+++ b/lib/engine/gui/gtk-frontend/ekiga-app.cpp
@@ -422,6 +422,10 @@ ekiga_main (int argc,
boost::shared_ptr<Ekiga::CallCore> call_core = app->priv->core->get<Ekiga::CallCore> ("call-core");
g_return_if_fail (call_core);
+ Ekiga::CodecList all_codecs = call_core->get_codecs ();
+ g_return_if_fail (all_codecs.find ("VP8"));
+ g_return_if_fail (all_codecs.find ("H.264"));
+ g_return_if_fail (all_codecs.find ("Opus"));
call_core->created_call.connect (boost::bind (&on_created_call_cb, _1, _2, (gpointer) app));
boost::shared_ptr<Ekiga::AccountCore> account_core = app->priv->core->get<Ekiga::AccountCore>
("account-core");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]