Commit graph

545 commits

Author SHA1 Message Date
Thomas Vander Stichele
23b365140e add a .data to buffers; it feels more natural to me than doing str(buffer) compared to the other properties.
Original commit message from CVS:

* gst/gst-types.defs:
* gst/gstbuffer.override:
* gst/pygstminiobject.c: (pygstminiobject_new_noref):
* testsuite/test_buffer.py:
add a .data to buffers; it feels more natural to me than doing
str(buffer) compared to the other properties.
make sub_buffer test for data
2005-09-01 14:50:01 +00:00
Thomas Vander Stichele
dc83edf73e fix a race condition in test_buffer.py
Original commit message from CVS:
fix a race condition in test_buffer.py


* gst/gst.override:
* gst/gstmodule.c: (init_gst):
add a pygst debug category for bindings themselves to use
* gst/gstbuffer.override:
add a repr method; add some assertions
* gst/pygstminiobject.c: (pygst_miniobject_init),
(pygstminiobject_register_wrapper), (pygstminiobject_new),
(pygstminiobject_new_noref), (pygstminiobject_dealloc),
(pygstminiobject_clear):
make the miniobjs hash private with an underscore
add debugging for inserting/removal in hash
fix pygstminiobject_clear - it also needs to remove
from the global hash.  Fixes a nasty race problem in
test_buffer
* testsuite/test_buffer.py:
expand on the subbuffer test
2005-09-01 14:41:28 +00:00
Andy Wingo
1bbb59401a examples/Makefile.am (examples_DATA): Dist fixer.
Original commit message from CVS:
2005-09-01  Andy Wingo  <wingo@pobox.com>

* 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-09-01 14:39:51 +00:00
Thomas Vander Stichele
7c9e84bc0f don't import ltihooks twice
Original commit message from CVS:
don't import ltihooks twice
2005-09-01 14:24:44 +00:00
Thomas Vander Stichele
633f644020 fix headers on tests
Original commit message from CVS:
fix headers on tests
2005-09-01 10:36:07 +00:00
Thomas Vander Stichele
b9d59e3e99 gst/__init__.py: del ltihooks properly; fixes loading of testhelper in testsuite
Original commit message from CVS:
* gst/__init__.py:
del ltihooks properly; fixes loading of testhelper in testsuite
* gst/gst.defs:
wrap link_filtered
2005-08-31 15:28:37 +00:00
Andy Wingo
0a961e4d7f gst/interfaces.defs (MixerTrack): MixerTrack is a GObject. How did this ever work before?
Original commit message from CVS:
2005-08-19  Andy Wingo  <wingo@pobox.com>

* gst/interfaces.defs (MixerTrack): MixerTrack is a GObject. How
did this ever work before?
2005-08-19 16:10:37 +00:00
Andy Wingo
08c7b1a588 gst/interfaces.override (_wrap_gst_tuner_list_channels) (_wrap_gst_tuner_list_norms, _wrap_gst_mixer_list_tracks)
Original commit message from CVS:
2005-08-19  Andy Wingo  <wingo@pobox.com>

* gst/interfaces.override (_wrap_gst_tuner_list_channels)
(_wrap_gst_tuner_list_norms, _wrap_gst_mixer_list_tracks)
(_wrap_gst_color_balance_list_channels): Catch programming errors
without segfaults, as glib would do.
2005-08-19 14:46:05 +00:00
Andy Wingo
06c0cf5e18 examples/debug-slider.py: New file.
Original commit message from CVS:
2005-08-18  Andy Wingo  <wingo@pobox.com>

* examples/debug-slider.py: New file.

* examples/Makefile.am (examples_DATA): Dist it, foolios.
2005-08-18 11:36:23 +00:00
Andy Wingo
ef32a35246 gst/gst.defs (watch_for_state_change): Added wrapper from CVS.
Original commit message from CVS:
2005-08-17  Andy Wingo  <wingo@pobox.com>

* gst/gst.defs (watch_for_state_change): Added wrapper from CVS.
2005-08-17 16:41:23 +00:00
Andy Wingo
8755b2a178 whoops
Original commit message from CVS:
whoops
2005-08-16 16:50:34 +00:00
Andy Wingo
e3c70bcaeb /tmp/cvs3vKuoV
Original commit message from CVS:
/tmp/cvs3vKuoV
2005-08-16 16:47:45 +00:00
Edward Hervey
1a39bca0ea gst/gst.override: Only display the filename and not the full path
Original commit message from CVS:
* gst/gst.override: (pygst_debug_log):
Only display the filename and not the full path
2005-08-11 13:23:20 +00:00
Edward Hervey
762b581fcb gst/gstmodule.c: changed debug category name from 'gst-python' to 'python'
Original commit message from CVS:
* gst/gstmodule.c: (init_gst):
changed debug category name from 'gst-python' to 'python'
* gst/gst.override: (pygst_debug_log):
gchar is way smaller than an int... resulting in negative line numbers
in debug.
2005-08-10 15:42:03 +00:00
Edward Hervey
54936521fb gst/gst.override: gchar is way smaller than an int... resulting in negative line numbers in debug.
Original commit message from CVS:
* gst/gst.override: (pygst_debug_log):
gchar is way smaller than an int... resulting in negative line numbers
in debug.
2005-08-10 15:24:12 +00:00
Edward Hervey
4164682236 gst/gst.override: printf("urlencoded%20space") != printf("%s", "urlencoded%20space")
Original commit message from CVS:
* gst/gst.override: (pygst_debug_log):
printf("urlencoded%20space") != printf("%s", "urlencoded%20space")
Funny how a lot of problems have gone since that's fixed :)
2005-08-10 15:06:51 +00:00
Edward Hervey
8ad2d61eeb gst/gstpad.override: Long != LongLong ....
Original commit message from CVS:
* gst/gstpad.override: (_wrap_gst_pad_query_position):
Long != LongLong ....
2005-08-09 13:42:56 +00:00
Edward Hervey
38acc2aff7 codegen/: Updates from pygtk's codegen and typo fix
Original commit message from CVS:
* codegen/codegen.py:
* codegen/argtypes.py:
Updates from pygtk's codegen and typo fix
2005-08-08 13:47:14 +00:00
Edward Hervey
139163d89e gst/: We now have debugging in gst-python ;) gst.[log|debug|info|warning|error]()
Original commit message from CVS:
* gst/gst.defs:
* gst/gst.override:
* gst/gstmodule.c:
We now have debugging in gst-python ;)
gst.[log|debug|info|warning|error]()
2005-08-04 10:44:16 +00:00
Edward Hervey
0f04024f5c bindings now wrap the gstreamer extra libs (adapter, controller,...)
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gstlibs.override:
* gst/gst.defs:
* gst/libs.defs:
* gst/gst.override:
* gst/gstlibs.override:
bindings now wrap the gstreamer extra libs (adapter, controller,...)
2005-08-03 16:54:57 +00:00
Thomas Vander Stichele
ea22601c50 file gst-pygtk-2.6.2.defs was initially added on branch BRANCH-GSTREAMER-0_8.
Original commit message from CVS:
file gst-pygtk-2.6.2.defs was initially added on branch BRANCH-GSTREAMER-0_8.
2005-08-03 13:12:38 +00:00
Andy Wingo
27ca26ae0b gst/gstmessage.override (_wrap_gst_message_parse_error): Always return a tuple of length 2.
Original commit message from CVS:
2005-08-03  Andy Wingo  <wingo@pobox.com>

* gst/gstmessage.override (_wrap_gst_message_parse_error): Always
return a tuple of length 2.
2005-08-03 12:48:40 +00:00
Andy Wingo
e6c416ca0d examples/pipeline-tester: Commit some updates I had.
Original commit message from CVS:
2005-08-03  Andy Wingo  <wingo@pobox.com>

* examples/pipeline-tester: Commit some updates I had.

* configure.ac (PYGST_CFLAGS): pygst.py generation is handled by
the makefile.
2005-08-03 12:32:13 +00:00
Thomas Vander Stichele
826f130ae6 file test_error.py was initially added on branch BRANCH-GSTREAMER-0_8.
Original commit message from CVS:
file test_error.py was initially added on branch BRANCH-GSTREAMER-0_8.
2005-08-03 11:13:19 +00:00
Edward Hervey
32dbfea730 Remove old documentation system
Original commit message from CVS:
* README-docs:
* configure.ac:
* Makefile.am:
Remove old documentation system
* gst/gst.defs:
* gst/gst-types.defs:
Updating defs files
* gst/gst.override:
Wrapped gst_flow_get_name() for const-gchar *
* gst/gstelement.override:
I really should test everything on 32 AND 64 bits systems...
* gst/gstevent.override:
Updated gst_event_new_seek() wrapper
Added gst_event_get_structure() wrapper
* gst/gstmodule.c:
Changed definition of gst.CLOCK_TIME_NONE to wrap GST_CLOCK_TIME_NONE
* testsuite/testhelpermodule.c:
gst_event_new --> gst_event_new_custom
2005-08-01 09:59:55 +00:00
Edward Hervey
79554d544f bye bye docs
Original commit message from CVS:
bye bye docs
2005-08-01 09:59:31 +00:00
Edward Hervey
7bb0ac55a2 gst/gst-types.defs: Added GhostPad type
Original commit message from CVS:
* gst/gst-types.defs: (GhostPad):
Added GhostPad type
* gst/interfaces.defs:
Added MixerTrackFlags, TunerChannelFlags and MixerOptions
Want the rest of the poem ? ;)
2005-07-25 11:29:47 +00:00
Edward Hervey
b32dc34bfc It seems that, somewhere along the way, I forgot to make sure interfaces were binded too :)
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/interfaces.defs:
* gst/interfaces.override:
* gst/xoverlay.override:
It seems that, somewhere along the way, I forgot to make sure interfaces
were binded too :)
2005-07-23 14:54:02 +00:00
Edward Hervey
9fd8f61cb1 gst/gstmessage.override: wrapped gst_message_parse_segment_start() and gst_message_parse_segment_done()
Original commit message from CVS:
* gst/gstmessage.override:
wrapped gst_message_parse_segment_start() and
gst_message_parse_segment_done()
* gst/gst.defs:
I'm bored with writing "Updating defs file", so I'll just write a poem
by Charles Baudelaire, "L'invitation au voyage" :
Mon enfant, ma soeur,
Songe  la douceur
D'aller l-bas vivre ensemble !
Aimer  loisir,
Aimer et mourir
Au pays qui te ressemble !
Les soleils mouills
De ces ciels brouills
Pour mon esprit ont les charmes
Si mystrieux
De tes tratres yeux,
Brillant  travers leurs larmes.
The rest at the next defs update :)
2005-07-21 12:03:23 +00:00
Edward Hervey
a7a9df2c86 gst/gst.defs: I'm bored with writing "Updating defs file", so I'll just write a poem by Charles Baudelaire, "L'invita...
Original commit message from CVS:
* gst/gst.defs:
I'm bored with writing "Updating defs file", so I'll just write a poem
by Charles Baudelaire, "L'invitation au voyage" :
Mon enfant, ma soeur,
Songe  la douceur
D'aller l-bas vivre ensemble !
Aimer  loisir,
Aimer et mourir
Au pays qui te ressemble !
Les soleils mouills
De ces ciels brouills
Pour mon esprit ont les charmes
Si mystrieux
De tes tratres yeux,
Brillant  travers leurs larmes.
The rest at the next defs update :)
2005-07-21 11:14:46 +00:00
Edward Hervey
cb954fd6d9 gst/pygstvalue.c: FixedList -> Array
Original commit message from CVS:
* gst/pygstvalue.c:
FixedList -> Array
* gst/gst.defs:
Updating defs file.
2005-07-20 18:06:10 +00:00
Edward Hervey
4d6a998b9d gst/gstpad.override: misc fixes for change in gst_pad_get_parent()
Original commit message from CVS:
* gst/gstpad.override: misc fixes for change in gst_pad_get_parent()
* gst/gst-types.defs:
* gst/gst.defs: Updating defs file even more :)
2005-07-18 17:13:32 +00:00
Edward Hervey
c4d8993ca4 gst/gstpad.override: misc fixes for change in gst_pad_get_parent()
Original commit message from CVS:
* gst/gstpad.override: misc fixes for change in gst_pad_get_parent()
* gst/gst.defs: Updating defs file even more :)
2005-07-18 17:13:04 +00:00
Edward Hervey
dc1bb839cd gst/gst.defs: Updating defs file even more :)
Original commit message from CVS:
* gst/gst.defs: Updating defs file even more :)
2005-07-18 17:12:31 +00:00
Edward Hervey
09382469a0 gst/gst.defs: Updating defs file
Original commit message from CVS:
* gst/gst.defs: Updating defs file
2005-07-18 16:40:41 +00:00
Andy Wingo
83196919be more pipes, some that work and some that are special
Original commit message from CVS:
more pipes, some that work and some that are special
2005-07-14 11:35:53 +00:00
Andy Wingo
37309ab22b fooling around with pipelines
Original commit message from CVS:
fooling around with pipelines
2005-07-13 16:57:14 +00:00
Edward Hervey
2d4bae8f2a gst/gst-types.defs: updating to current core for 2 new GstMessageType's
Original commit message from CVS:
* gst/gst-types.defs: (MessageType):
updating to current core for 2 new GstMessageType's
* gst/gstbus.override: (bus_sync_handler),(bus_handler):
properly unref the message python wrapper...
2005-07-13 16:29:06 +00:00
Edward Hervey
816af777c3 gst/gstbus.override: properly unref the message python wrapper...
Original commit message from CVS:
* gst/gstbus.override: (bus_sync_handler),(bus_handler):
properly unref the message python wrapper...
2005-07-13 16:10:24 +00:00
Andy Wingo
e6ee173eae examples/pipeline-tester (Window.on_message): Handle errors.
Original commit message from CVS:
2005-07-13  Andy Wingo  <wingo@pobox.com>

* examples/pipeline-tester (Window.on_message): Handle errors.
(Window.play): Drain messages from bus before setting pipe to
NULL.
2005-07-13 15:14:51 +00:00
Edward Hervey
1ed1da92db Makefile.am: PYGSTDIR typo fix
Original commit message from CVS:
* Makefile.am: (install-data-local):
PYGSTDIR typo fix
* examples/bps.py:
* examples/f2f.py:
* examples/gstfile.py:
Updated some examples to 0.9
2005-07-13 13:55:25 +00:00
Edward Hervey
2488b32b07 examples/: Updated some examples to 0.9
Original commit message from CVS:
* examples/bps.py:
* examples/f2f.py:
* examples/gstfile.py:
Updated some examples to 0.9
2005-07-13 12:31:47 +00:00
Andy Wingo
ce4e6304a2 mad creditz to the merali
Original commit message from CVS:
mad creditz to the merali
2005-07-13 12:27:47 +00:00
Andy Wingo
6074356cec examples/vumeter.py: New file, a VU meter application that reads from alsasrc.
Original commit message from CVS:
2005-07-13  Andy Wingo  <wingo@pobox.com>

* examples/vumeter.py: New file, a VU meter application that reads
from alsasrc.

* examples/fvumeter.py: New file, imported from Flumotion and
relicensed under the LGPL. Implements a simple VU meter widget.
2005-07-13 10:55:18 +00:00
Edward Hervey
19dd2cc030 gst/gstbus.override: Raise an exception if the callback doesn't return anything
Original commit message from CVS:
* gst/gstbus.override: (bus_handler) (bus_sync_handler):
Raise an exception if the callback doesn't return anything
* gst/pygstminiobject.c:
removed the 'ref' and 'unref' methods
2005-07-13 10:05:59 +00:00
Andy Wingo
d32e28af85 examples/pipeline-tester: Tweaks, show messages.
Original commit message from CVS:
2005-07-13  Andy Wingo  <wingo@pobox.com>

* examples/pipeline-tester: Tweaks, show messages.
2005-07-13 10:03:04 +00:00
Edward Hervey
9b74a9033a gst/gst.override: removed deprecated wrappers (gst_event_new_any*)
Original commit message from CVS:
* gst/gst.override:
removed deprecated wrappers (gst_event_new_any*)
* gst/gstbuffer.override:
* gst/gstquery.override:
* gst/gstmessage.override:
* gst/gstevent.override:
* gst/pygstminiobject.c:
* gst/pygstminiobject.h:
Correct wrapping of functions 'creating' mini-objects
* gst/gstelement.override: (_wrap_gst_element_get_state):
More meaningful exception message
* gst/gstpad.override:
wrapped gst_pad_alloc_buffer(), gst_pad_pull_range(),
gst_pad_get_range(), gst_pad_get_internal_links(),
gst_pad_get_internal_links_default(), gst_pad_get_query_types(),
gst_pad_get_query_types_default()
2005-07-12 16:37:31 +00:00
Andy Wingo
786460e832 examples/pipeline-tester: New file, tests out gstreamer pipelines. The pipelines are a bit broken right now tho.
Original commit message from CVS:
2005-07-12  Andy Wingo  <wingo@pobox.com>

* examples/pipeline-tester: New file, tests out gstreamer
pipelines. The pipelines are a bit broken right now tho.
2005-07-12 15:23:22 +00:00
Andy Wingo
2694486583 env: New script, munges PYTHONPATH for uninstalled usage, and also $PACKAGES which is useful if you add `print-packag...
Original commit message from CVS:
2005-07-12  Andy Wingo  <wingo@pobox.com>

* env: New script, munges PYTHONPATH for uninstalled usage, and
also $PACKAGES which is useful if you add `print-packages` to your
$PS1 and drop http://wingolog.org/pub/print-packages into your
$PATH.
2005-07-12 14:56:57 +00:00
Andy Wingo
76ea628334 configure.ac (AC_CONFIG_FILES): The makefile handles pygst.py now.
Original commit message from CVS:
2005-07-12  Andy Wingo  <wingo@pobox.com>

* configure.ac (AC_CONFIG_FILES): The makefile handles pygst.py
now.

* Makefile.am (install-data-local): Actually install pygst.pth to
the pythondir, not pyexecdir. Also install a properly sedded
pygst.py.
(pygst.py): Sed the builddir into pygst.py, and set not writable
(to avoid any confusion about which file to edit).

* pygst.py.in (_pygst_dir): Set _pygst_dir from one variable,
@PYGSTDIR@, which is manually sedded in from the Makefile, so that
it works both installed and uninstalled.
2005-07-12 14:00:03 +00:00