Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-09-06 10:54:01 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-09-07 09:14:27 (GMT)
commitf5d6cb7044e8b7e2d902c7a1358f3d585a7ca110 (patch)
treeb672354f599db44ce282a2b5fb36cb7f066eda23 /bin
parent560a3699c3bba14313cd597dce6b2a994579be97 (diff)
Model Speech: use GStreamer 1.0 through introspection
Signed-off-by: Daniel Narvaez <dwnarvaez@gmail.com> Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/sugar-session4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/sugar-session b/bin/sugar-session
index fca94f6..1519a20 100755
--- a/bin/sugar-session
+++ b/bin/sugar-session
@@ -28,12 +28,14 @@ if os.environ.get('SUGAR_LOGGER_LEVEL', '') == 'debug':
import gettext
import logging
+import sys
from gi.repository import GConf
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GdkX11
from gi.repository import GObject
+from gi.repository import Gst
import dbus.glib
from gi.repository import Wnck
@@ -47,6 +49,8 @@ except ImportError:
Gdk.threads_init()
dbus.glib.threads_init()
+Gst.init(sys.argv)
+
def cleanup_logs(logs_dir):
"""Clean up the log directory, moving old logs into a numbered backup
directory. We only keep `_MAX_BACKUP_DIRS` of these backup directories