Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
58c59ec5
by Philipp Hörist at 2022-11-30T23:38:26+01:00
-
d3953b58
by Philipp Hörist at 2022-11-30T23:59:57+01:00
-
4ad531df
by Philipp Hörist at 2022-12-01T00:14:02+01:00
2 changed files:
Changes:
| ... | ... | @@ -32,11 +32,6 @@ |
| 32 | 32 | from gi.repository import GLib
|
| 33 | 33 | from gi.repository import Gio
|
| 34 | 34 | |
| 35 | -try:
|
|
| 36 | - from gi.repository import GstPbutils
|
|
| 37 | -except Exception:
|
|
| 38 | - pass
|
|
| 39 | - |
|
| 40 | 35 | from PIL import Image
|
| 41 | 36 | from PIL import ImageFile
|
| 42 | 37 | |
| ... | ... | @@ -421,6 +416,9 @@ def aes_decrypt(key: bytes, iv: bytes, payload: bytes) -> bytes: |
| 421 | 416 | |
| 422 | 417 | def contains_audio_streams(file_path: Path) -> bool:
|
| 423 | 418 | # Check if it is really an audio file
|
| 419 | + |
|
| 420 | + from gi.repository import GstPbutils
|
|
| 421 | + |
|
| 424 | 422 | has_audio = False
|
| 425 | 423 | discoverer = GstPbutils.Discoverer()
|
| 426 | 424 | try:
|
| ... | ... | @@ -107,12 +107,18 @@ def _get_features(self) -> list[Feature]: |
| 107 | 107 | _('Requires: libappindicator3'),
|
| 108 | 108 | _('No additional requirements'),
|
| 109 | 109 | None),
|
| 110 | - Feature(_('Audio / Video'),
|
|
| 110 | + Feature(_('Audio Preview'),
|
|
| 111 | + app.is_installed('GST'),
|
|
| 112 | + _('Enables Gajim to provide a Audio preview'),
|
|
| 113 | + _('Requires: gstreamer-1.0, gst-plugins-base-1.0'),
|
|
| 114 | + _('No additional requirements'),
|
|
| 115 | + None),
|
|
| 116 | + Feature(_('Audio / Video Calls'),
|
|
| 111 | 117 | av_available,
|
| 112 | 118 | _('Enables Gajim to provide Audio and Video chats'),
|
| 113 | - _('Requires: gir1.2-farstream-0.2, gir1.2-gstreamer-1.0, '
|
|
| 114 | - 'gstreamer1.0-plugins-base, gstreamer1.0-plugins-ugly, '
|
|
| 115 | - 'gstreamer1.0-libav, and gstreamer1.0-gtk3'),
|
|
| 119 | + _('Requires: farstream-0.2, gstreamer-1.0, '
|
|
| 120 | + 'gst-plugins-base-1.0, gst-plugins-ugly-1.0, '
|
|
| 121 | + 'gst-libav and gstreamer-gtk3-plugin'),
|
|
| 116 | 122 | _('Feature not available on Windows'),
|
| 117 | 123 | None),
|
| 118 | 124 | Feature(_('Automatic Status'),
|
| ... | ... | @@ -146,7 +152,7 @@ def _get_features(self) -> list[Feature]: |
| 146 | 152 | app.is_installed('UPNP'),
|
| 147 | 153 | _('Enables Gajim to request your router to forward ports '
|
| 148 | 154 | 'for file transfers'),
|
| 149 | - _('Requires: gir1.2-gupnpigd-1.0'),
|
|
| 155 | + _('Requires: gupnpigd-1.0'),
|
|
| 150 | 156 | _('Feature not available on Windows'),
|
| 151 | 157 | None)
|
| 152 | 158 | ]
|