diff --git a/src/common/gajim.py b/src/common/gajim.py index b0524135c..cd147a85f 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -201,7 +201,9 @@ try: from gi.repository import Farstream gi.require_version('Gst', '1.0') from gi.repository import Gst + gi.require_version('GdkX11', '3.0') from gi.repository import GdkX11 + gi.require_version('GstVideo', '1.0') from gi.repository import GstVideo from gi.repository import GLib try: diff --git a/src/common/jingle_rtp.py b/src/common/jingle_rtp.py index ab7555d40..f78d81018 100644 --- a/src/common/jingle_rtp.py +++ b/src/common/jingle_rtp.py @@ -27,7 +27,9 @@ from gi.repository import Farstream import gi gi.require_version('Gst', '1.0') from gi.repository import Gst +gi.require_version('GdkX11', '3.0') from gi.repository import GdkX11 +gi.require_version('GstVideo', '1.0') from gi.repository import GstVideo from gi.repository import GLib diff --git a/src/common/multimedia_helpers.py b/src/common/multimedia_helpers.py index 0e2afd583..910c00d93 100644 --- a/src/common/multimedia_helpers.py +++ b/src/common/multimedia_helpers.py @@ -13,8 +13,12 @@ ## You should have received a copy of the GNU General Public License ## along with Gajim. If not, see . +import gi +gi.require_version('Gst', '1.0') from gi.repository import Gst +gi.require_version('GdkX11', '3.0') from gi.repository import GdkX11 +gi.require_version('GstVideo', '1.0') from gi.repository import GstVideo diff --git a/src/config.py b/src/config.py index 7cabc6e12..bde4a6701 100644 --- a/src/config.py +++ b/src/config.py @@ -68,7 +68,7 @@ try: from common.multimedia_helpers import AudioInputManager, AudioOutputManager from common.multimedia_helpers import VideoInputManager, VideoOutputManager HAS_GST = True -except ImportError: +except (ImportError, ValueError): HAS_GST = False from common.exceptions import GajimGeneralException