alessandro gst-python: gst-python/ gst-python/gst/

[email protected] Tue, 9 Dec 2008 06:30:57 -0800 (PST)
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gst-python
Changes by:     alessandro
Date:           Tue Dec 09 2008  14:30:57 UTC

Log message:
	* gst/__init__.py:
	Add gst.Fourcc.__eq__ and gst.Fourcc.__ne__.

Modified files:
    .               : ChangeLog
    gst             : __init__.py

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/ChangeLog.diff?r1=1.701&r2=1.702
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/gst/__init__.py.diff?r1=1.43&r2=1.44

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-python/ChangeLog,v
retrieving revision 1.701
retrieving revision 1.702
diff -u -d -r1.701 -r1.702
--- ChangeLog	9 Dec 2008 11:48:14 -0000	1.701
+++ ChangeLog	9 Dec 2008 14:30:42 -0000	1.702
@@ -1,3 +1,8 @@
+2008-12-09  Alessandro Decina  <[email protected]>
+
+	* gst/__init__.py:
+	Add gst.Fourcc.__eq__ and gst.Fourcc.__ne__.
 2008-12-09  Edward Hervey  <[email protected]>
 
 	* gst/Makefile.am:
Index: __init__.py
RCS file: /cvs/gstreamer/gst-python/gst/__init__.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- __init__.py	8 Nov 2008 11:49:30 -0000	1.43
+++ __init__.py	9 Dec 2008 14:30:43 -0000	1.44
@@ -45,8 +45,18 @@
     def __init__(self, string):
         Value.__init__(self, 'fourcc')
         self.fourcc = string
+    
     def __repr__(self):
         return '<gst.Fourcc %s>' % self.fourcc
+    def __eq__(self, other):
+        if isinstance(other, Fourcc):
+            return self.fourcc == other.fourcc
+        return False
+    def __ne__(self, other):
+        return not self.__eq__(other)
 class IntRange(Value):
     def __init__(self, low, high):

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/