From 209e51800de4b0dba85707b5a548c43bf02cd0d7 Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Mon, 5 Jul 2010 20:57:29 +0200 Subject: [PATCH] Maemo 4: Fallback to playbin from playbin2 --- src/panucci/backends/gstreamer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/panucci/backends/gstreamer.py b/src/panucci/backends/gstreamer.py index 80cc038..b2f86e3 100644 --- a/src/panucci/backends/gstreamer.py +++ b/src/panucci/backends/gstreamer.py @@ -114,7 +114,10 @@ class GStreamerPlayer(base.BasePlayer): def _setup_player(self, filetype=None): self.__log.debug("Creating playbin-based gstreamer player") - self._player = gst.element_factory_make('playbin2', 'player') + try: + self._player = gst.element_factory_make('playbin2', 'player') + except: + self._player = gst.element_factory_make('playbin', 'player') self._filesrc = self._player self._filesrc_property = 'uri' return True -- 2.11.4.GIT