Re: [jokosher-devel] Patches for GNOME Audio Profiles and Extensions API



Sorry.  Didn't do a svn update before doing the svn diff.

Now attached is a patch against current svn version


> joe fatnsoft com wrote:
>> One patch removes a debugging print from GNOME Audio Profiles.py.  The
>> other adds and uses a decorator around the exported functions.
>
> Okay, just next time remember to do that you before you sumbit the patch.
>
>   The
>> decorator does not allow exceptions to pass beyond the Jokosher API and
>> returns a -1 error code instead.
>
> You seem to have attached the wrong patch.
> This one has already been commited:
>
>>
>> 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
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> jokosher-devel-list mailing list
>> jokosher-devel-list gnome org
>> http://mail.gnome.org/mailman/listinfo/jokosher-devel-list
>
>
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


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