From: <wi...@fr...> - 2005-09-01 14:40:05
|
CVS Root: /cvs/gstreamer Module: gst-python Changes by: wingo Date: Thu Sep 01 2005 07:40:03 PDT Log message: 2005-09-01 Andy Wingo <wi...@po...> * examples/Makefile.am (examples_DATA): Dist fixer. * examples/debugslider.py: Renamed from debug-slider.py so it can be imported. * examples/pipeline-tester: Add a debugslider. * pygst.py.in (require): If pygst.require() is called multiple times, don't pollute sys.path with unneeded path entries. Modified files: . : ChangeLog pygst.py.in examples : Makefile.am pipeline-tester Added files: examples : debugslider.py Removed files: examples : debug-slider.py Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/ChangeLog.diff?r1=1.213&r2=1.214 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/pygst.py.in.diff?r1=1.2&r2=1.3 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/examples/Makefile.am.diff?r1=1.12&r2=1.13 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/examples/debug-slider.py http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/examples/debugslider.py?rev=1.1&content-type=text/vnd.viewcvs-markup http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-python/examples/pipeline-tester.diff?r1=1.8&r2=1.9 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-python/ChangeLog,v retrieving revision 1.213 retrieving revision 1.214 diff -u -d -r1.213 -r1.214 --- ChangeLog 31 Aug 2005 15:28:37 -0000 1.213 +++ ChangeLog 1 Sep 2005 14:39:51 -0000 1.214 @@ -1,3 +1,15 @@ +2005-09-01 Andy Wingo <wi...@po...> + + * examples/Makefile.am (examples_DATA): Dist fixer. + * examples/debugslider.py: Renamed from debug-slider.py so it can + be imported. + * examples/pipeline-tester: Add a debugslider. + * pygst.py.in (require): If pygst.require() is called multiple + times, don't pollute sys.path with unneeded path entries. 2005-08-31 Thomas Vander Stichele <thomas at apestaart dot org> * gst/__init__.py: Index: pygst.py.in RCS file: /cvs/gstreamer/gst-python/pygst.py.in,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- pygst.py.in 12 Jul 2005 14:00:03 -0000 1.2 +++ pygst.py.in 1 Sep 2005 14:39:51 -0000 1.3 @@ -51,7 +51,9 @@ assert version == _pygst_version, \ "Only version '%s' is available" % version - # prepend the pygst path ... + # move the pygst path to the front + while _pygst_dir in sys.path: + sys.path.remove(_pygst_dir) sys.path.insert(0, _pygst_dir) _pygst_required_version = version Index: Makefile.am RCS file: /cvs/gstreamer/gst-python/examples/Makefile.am,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- Makefile.am 18 Aug 2005 11:36:23 -0000 1.12 +++ Makefile.am 1 Sep 2005 14:39:51 -0000 1.13 @@ -2,7 +2,7 @@ examples_DATA = \ bps.py \ cp.py \ - debug-slider.py \ + debugslider.py \ f2f.py \ filesrc.py \ gst123 \ --- debug-slider.py DELETED --- --- NEW FILE: debugslider.py --- # gst-python # Copyright (C) 2005 Fluendo S.L. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # Author: Andy Wingo <wi...@po...> import gtk from gtk import gdk import gobject import pygst pygst.require('0.9') import gst class DebugSlider(gtk.HScale): def __init__(self): adj = gtk.Adjustment(int(gst.debug_get_default_threshold()), 0, 5, 1, 0, 0) gtk.HScale.__init__(self, adj) self.set_digits(0) self.set_draw_value(True) self.set_value_pos(gtk.POS_TOP) def value_changed(self): newlevel = int(self.get_adjustment().get_value()) gst.debug_set_default_threshold(newlevel) self.connect('value-changed', value_changed) if __name__ == '__main__': p = gst.parse_launch('fakesrc ! fakesink') p.set_state(gst.STATE_PLAYING) w = gtk.Window() s = DebugSlider() w.add(s) s.show() w.set_default_size(200, 40) w.show() w.connect('delete-event', lambda *args: gtk.main_quit()) gtk.main() Index: pipeline-tester RCS file: /cvs/gstreamer/gst-python/examples/pipeline-tester,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- pipeline-tester 16 Aug 2005 16:50:34 -0000 1.8 +++ pipeline-tester 1 Sep 2005 14:39:51 -0000 1.9 @@ -35,6 +35,9 @@ pygst.require('0.9') import gst +print sys.path +import debugslider data = (('Video capture via V4L', 'v4lsrc name=source \n' @@ -147,6 +150,9 @@ tv.set_headers_visible(False) tv.show() sw.add(tv) + ds = debugslider.DebugSlider() + ds.show() + b.pack_start(ds, False, False, 0) l = gtk.Label() l.set_selectable(True) l.show() |