Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2021-06-06 01:29:50 +0300
committerwurstsalat <mailtrash@posteo.de>2021-06-06 01:29:56 +0300
commit8e66037cce0deb0fb9b5697b66d89c9f4df4310b (patch)
tree1acf53734b7602c18d995e912910365090d13b09
parent819629d50e0c51b87ea13a9af2027153cc8d1bd2 (diff)
Features: Check for gstreamer gtk plugin for AV support
Fixes #10551
-rw-r--r--README.md2
-rw-r--r--gajim/common/app.py5
-rw-r--r--gajim/gtk/features.py3
3 files changed, 7 insertions, 3 deletions
diff --git a/README.md b/README.md
index 1aa2f8c18..c3d9500f3 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@
- gir1.2-gspell-1 and hunspell-LANG where lang is your locale eg. en, fr etc
- gir1.2-secret-1 for GNOME Keyring or KDE support as password storage
- D-Bus running to have gajim-remote working
-- gir1.2-farstream-0.2, gir1.2-gstreamer-1.0 and gir1.2-gst-plugins-base-1.0 for audio and video calls
+- gir1.2-farstream-0.2, gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0, gstreamer1.0-plugins-ugly, gstreamer1.0-libav, and gstreamer1.0-gtk3 for audio and video calls
- gir1.2-gupnpigd-1.0 for better NAT traversing
- gir1.2-networkmanager-1.0 for network lose detection
- gir1.2-geoclue-2.0 for sharing your location
diff --git a/gajim/common/app.py b/gajim/common/app.py
index 97ced8a9f..d87cd7bdf 100644
--- a/gajim/common/app.py
+++ b/gajim/common/app.py
@@ -227,7 +227,10 @@ def detect_dependencies():
Gst.init(None)
conference = Gst.ElementFactory.make('fsrtpconference', None)
conference.new_session(Farstream.MediaType.AUDIO)
- _dependencies['AV'] = True
+ from gajim.gui.gstreamer import create_gtk_widget
+ sink, widget, name = create_gtk_widget()
+ if sink is not None:
+ _dependencies['AV'] = True
except Exception as error:
log('gajim').warning('AV dependency test failed: %s', error)
diff --git a/gajim/gtk/features.py b/gajim/gtk/features.py
index f8f913c1b..9fb3a5bcf 100644
--- a/gajim/gtk/features.py
+++ b/gajim/gtk/features.py
@@ -91,7 +91,8 @@ class Features(Gtk.ApplicationWindow):
app.is_installed('AV'),
_('Enables Gajim to provide Audio and Video chats'),
_('Requires: gir1.2-farstream-0.2, gir1.2-gstreamer-1.0, '
- 'gstreamer1.0-libav, gstreamer1.0-plugins-ugly'),
+ 'gstreamer1.0-plugins-base, gstreamer1.0-plugins-ugly, '
+ 'gstreamer1.0-libav, and gstreamer1.0-gtk3'),
_('Feature not available under Windows'),
None),
Feature(_('Automatic Status'),