Commit 588ead09 authored by Yann Leboulanger's avatar Yann Leboulanger

fix importing gst. Fixes #8306

parent 9d4b1dd5
......@@ -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:
......
......@@ -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
......
......@@ -13,8 +13,12 @@
## You should have received a copy of the GNU General Public License
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment