fix importing gst. Fixes #8306

This commit is contained in:
Yann Leboulanger 2016-03-29 22:54:40 +02:00
parent 9d4b1dd53f
commit 588ead0990
4 changed files with 9 additions and 1 deletions

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -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