[jokosher-devel] [Fwd: Patches for GNOME Audio Profiles]



---------------------------- Original Message ----------------------------
Subject: Patches for GNOME Audio Profiles
From:    joe fatnsoft com
Date:    Sun, October 15, 2006 9:29 pm
To:      jokosher-devel-list-request gnome org
--------------------------------------------------------------------------

update_api.diff includes the fixes to be able to add export types.

GNOMEAudioProfiles.py is an extension to add the GNOME Audio Profiles to
the export types
Index: Jokosher/Extension.py
===================================================================
--- Jokosher/Extension.py	(revision 808)
+++ Jokosher/Extension.py	(working copy)
@@ -459,7 +459,7 @@
 		if not description or not extension and not pipelineString:
 			return 1
 		try:
-			bin = gst.gst_parse_bin_from_description(encodeBin)
+			bin = gst.gst_parse_bin_from_description("fakesrc ! " + encodeBin, True)
 			del bin
 		except gobject.GError:
 			return 2
#	GNOMEAudioProfiles.py
#	--------------------
#	This extension is for adding the GNOME Audio Profiles into Jokosher

import Jokosher.Extension
import gconf
import traceback

EXTENSION_NAME = "GNOME Audio Profiles"
EXTENSION_DESCRIPTION = "Imports GNOME Audio Profiles into jokosher"
EXTENSION_VERSION = "0.0.1"
_GCONF_PROFILE_PATH = "/system/gstreamer/0.10/audio/profiles/"
_GCONF_PROFILE_LIST_PATH = "/system/gstreamer/0.10/audio/global/profile_list"

def startup(api):
    _GCONF = gconf.client_get_default()
    profiles = _GCONF.get_list(_GCONF_PROFILE_LIST_PATH, 1)
    print profiles
    for name in profiles:
        if (_GCONF.get_bool(_GCONF_PROFILE_PATH + name + "/active")):
            description = _GCONF.get_string(_GCONF_PROFILE_PATH + name + "/name") + " (GNOME Audio Profile)"
            extension = _GCONF.get_string(_GCONF_PROFILE_PATH + name + "/extension")
            encodeBin = _GCONF.get_string(_GCONF_PROFILE_PATH + name + "/pipeline")
            error = api.add_export_format(description, extension, encodeBin)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]