Commit graph

1596 commits

Author SHA1 Message Date
David Schleef 808c52f535 gst_caps_to_string: print NULL caps correctly
Original commit message from CVS:
gst_caps_to_string: print NULL caps correctly
2003-05-30 03:02:38 +00:00
Thomas Vander Stichele e05cab4b4c help us debug caps ref issues
Original commit message from CVS:
help us debug caps ref issues
2003-05-29 17:24:03 +00:00
Ronald S. Bultje e46a8e3add GstCaps is not a GObject but a boxed-type
Original commit message from CVS:
GstCaps is not a GObject but a boxed-type
2003-05-29 09:31:51 +00:00
Ronald S. Bultje 12d80b1964 Fix type definition bug plus missing argument for callback
Original commit message from CVS:
Fix type definition bug plus missing argument for callback
2003-05-26 06:15:27 +00:00
Wim Taymans a4df733d52 only update the DURATION field when appending buffers and both buffers have a valid duration.
Original commit message from CVS:
only update the DURATION field when appending buffers and both buffers
have a valid duration.
2003-05-24 11:04:57 +00:00
Wim Taymans a4f13fb2be - moved functionality of GST_FORMAT_UNITS to GST_FORMAT_DEFAULT, the old _DEFAULT functionality was ambigous; now the...
Original commit message from CVS:
- moved functionality of GST_FORMAT_UNITS to GST_FORMAT_DEFAULT, the old
_DEFAULT functionality was ambigous; now the _DEFAULT format is media
specific (frames for video, samples for audio, ...)
2003-05-24 10:30:37 +00:00
Wim Taymans 6ab1630c40 - First attempt at implementing #113180, this one also removes automatic (byte) offset calculations in the subbuffer ...
Original commit message from CVS:
- First attempt at implementing #113180, this one also removes
automatic (byte) offset calculations in the subbuffer code and moves
that logic to bytestream and filesrc. It will also update the offset
and duration fields in some special cases.
2003-05-24 10:09:39 +00:00
David Schleef c4e27d225a Fix aliasing problems noticed by gcc-3.3. Suggests that we need to change gst_pad_{push|pull}() to GstData *. (and ...
Original commit message from CVS:
Fix aliasing problems noticed by gcc-3.3.  Suggests that we need to
change gst_pad_{push|pull}() to GstData *.  (and probably others)
2003-05-22 00:05:57 +00:00
David Schleef 484c536ba9 Remove (incorrect) cast on gst_buffer_is_writable()
Original commit message from CVS:
Remove (incorrect) cast on gst_buffer_is_writable()
2003-05-20 22:05:28 +00:00
David Schleef 23823201b3 Fix _second_ sparc asm. Who would have guessed there would be two?
Original commit message from CVS:
Fix _second_ sparc asm.  Who would have guessed there would be two?
2003-05-19 21:45:37 +00:00
David Schleef e0859eb74a Fix sparc asm code for gcc prior to 3.2
Original commit message from CVS:
Fix sparc asm code for gcc prior to 3.2
2003-05-19 21:04:53 +00:00
Ronald S. Bultje 4f5c06b34a Weird C code fix
Original commit message from CVS:
Weird C code fix
2003-05-19 18:01:42 +00:00
David Schleef 906329ab04 Fix caps negotiation problems.
Original commit message from CVS:
Fix caps negotiation problems.
2003-05-19 02:36:01 +00:00
David Schleef 214c557a6d Change GST_DEBUG_FUNCPTR() to return a pointer of the same type that it is called with. Fix lots of warnings due to ...
Original commit message from CVS:
Change GST_DEBUG_FUNCPTR() to return a pointer of the same type that it
is called with.  Fix lots of warnings due to change.
2003-05-18 23:34:12 +00:00
Thomas Vander Stichele 6cf83f6d8b applying http://bugzilla.gnome.org/show_bug.cgi?id=110707 patch, should fix testsuite issues
Original commit message from CVS:
applying
http://bugzilla.gnome.org/show_bug.cgi?id=110707
patch, should fix testsuite issues
2003-05-18 22:59:51 +00:00
David Schleef 6b42d9aca7 Change uint to guint
Original commit message from CVS:
Change uint to guint
2003-05-18 22:45:27 +00:00
David Schleef d2e2686411 Fix aliasing warning from gcc-3.3
Original commit message from CVS:
Fix aliasing warning from gcc-3.3
2003-05-18 22:44:11 +00:00
David Schleef ac8e84fb8e change from sscanf to strtol
Original commit message from CVS:
change from sscanf to strtol
2003-05-18 22:41:25 +00:00
Thomas Vander Stichele 5b97f4ce2b oops
Original commit message from CVS:
oops
2003-05-18 16:28:15 +00:00
Thomas Vander Stichele bdea7633cd a bunch of gtk-doc fixes
Original commit message from CVS:
a bunch of gtk-doc fixes
2003-05-18 15:03:34 +00:00
Benjamin Otte c51366dc49 fix wrong caps refcount handling of filtered caps in cornercases.
Original commit message from CVS:
fix wrong caps refcount handling of filtered caps in cornercases.
2003-05-18 03:22:04 +00:00
Benjamin Otte 42f3a63586 remove _destroy functions from public headers and make them static.
Original commit message from CVS:
remove _destroy functions from public headers and make them static.
2003-05-18 02:42:19 +00:00
Benjamin Otte 012cb2cb6f make the parser accept chained caps, too
Original commit message from CVS:
make the parser accept chained caps, too
2003-05-18 02:30:00 +00:00
Thomas Vander Stichele 439b5101ba clock debug addition
Original commit message from CVS:
clock debug addition
2003-05-17 23:08:40 +00:00
Benjamin Otte a960c7a7a3 This is filtered caps in 20 lines. Implemented full featured parsing of pipelines with filtered caps. To get a grip o...
Original commit message from CVS:
This is filtered caps in 20 lines. Implemented full featured parsing of pipelines with filtered caps. To get a grip of the syntax you might want to look at testsuite/caps/string-conversions.c or run that test
2003-05-17 20:45:06 +00:00
Benjamin Otte 4471a7e84d only set state to playing when elements are linked - don't pause in SOMETIMES callback
Original commit message from CVS:
only set state to playing when elements are linked - don't pause in SOMETIMES callback
2003-05-17 17:08:58 +00:00
Benjamin Otte 63c6869123 fix wrong debug message to print the right thing
Original commit message from CVS:
fix wrong debug message to print the right thing
2003-05-17 15:55:23 +00:00
Ronald S. Bultje 9c4c70d69e Add unistd.h (#110671)
Original commit message from CVS:
Add unistd.h (#110671)
2003-05-17 13:10:00 +00:00
Benjamin Otte f13198c52b added gst_{props,caps}_{from,to}_string to API, see documentation for use, put errors into testsuite/caps/string-conv...
Original commit message from CVS:
added gst_{props,caps}_{from,to}_string to API, see documentation for use, put errors into testsuite/caps/string-conversions.c
2003-05-17 00:47:01 +00:00
Benjamin Otte 75ec036895 ref pool before creating buffer that's using it
Original commit message from CVS:
ref pool before creating buffer that's using it
2003-05-17 00:42:57 +00:00
Ronald S. Bultje 8777f9a763 make -> shell variable
Original commit message from CVS:
make -> shell variable
2003-05-16 06:33:36 +00:00
Thomas Vander Stichele 2565248558 gtk-doc fixes clock debug
Original commit message from CVS:
gtk-doc fixes
clock debug
2003-05-15 22:46:37 +00:00
Benjamin Otte 22c2af5de1 Fix macro GST_FOURCC_ARGS - it assumed big endian ints
Original commit message from CVS:
Fix macro GST_FOURCC_ARGS - it assumed big endian ints
2003-05-13 23:15:46 +00:00
David Schleef dda34273e0 Added GST_CAT_APPLICATION. Fixes #111009
Original commit message from CVS:
Added GST_CAT_APPLICATION.  Fixes #111009
2003-05-13 06:48:49 +00:00
David Schleef 376ec32dce Fix bug in PRINT() macro
Original commit message from CVS:
Fix bug in PRINT() macro
2003-05-13 05:47:04 +00:00
James A Morrison 34e5211a15 fix sparc atomic functions.
Original commit message from CVS:
Patch from James A Morrison <ja2morri@student.math.uwaterloo.ca> to
fix sparc atomic functions.
2003-05-12 23:20:55 +00:00
Wim Taymans f4845c186c Make sure the FIXED flag is computed correctly when normalizing a GstProps.
Original commit message from CVS:
Make sure the FIXED flag is computed correctly when normalizing a GstProps.
2003-05-10 18:09:48 +00:00
Benjamin Otte e8bc3500f3 SysClocks need their own mutex/cond pair, as we have multiple (via subclasses). Use a static mutex for setting THE sy...
Original commit message from CVS:
SysClocks need their own mutex/cond pair, as we have multiple (via subclasses). Use a static mutex for setting THE system clock
2003-05-10 14:38:48 +00:00
Benjamin Otte b74e6f24f2 enable allocation tracing for GstObjects and make allocation tracing a configure switch (enable by default for now)
Original commit message from CVS:
enable allocation tracing for GstObjects and make allocation tracing a configure switch (enable by default for now)
2003-05-10 12:42:02 +00:00
Wim Taymans b41c935ff7 Use GstMemChunk to allocate events
Original commit message from CVS:
Use GstMemChunk to allocate events
2003-05-10 12:15:58 +00:00
Benjamin Otte 76b9ffbdbc bugfixes:
Original commit message from CVS:
bugfixes:
- allow disposal of subclasses of GstSystemClock
- only create one system clock
2003-05-10 11:11:29 +00:00
Wim Taymans 4a64884918 Fix 112596, gst_caps_is_always_compatible() broken
Original commit message from CVS:
Fix 112596, gst_caps_is_always_compatible() broken
2003-05-08 19:57:06 +00:00
Benjamin Otte 6c44f865e8 some minor improvements:
Original commit message from CVS:
some minor improvements:
- better debugging output
- don't set state to paused when plugging anymore
- bugfix: set typefind caps on srcpad, not sinkpad
- remove unnecessary check for right caps
2003-05-06 23:47:07 +00:00
Benjamin Otte 316124eb40 state need not be playing with new schedulers when adding/removing elements
Original commit message from CVS:
state need not be playing with new schedulers when adding/removing elements
2003-05-06 23:42:23 +00:00
Benjamin Otte fe3861c2d3 do error checking for int/float values and don't accept trailing characters, but do accept overflows
Original commit message from CVS:
do error checking for int/float values and don't accept trailing characters, but do accept overflows
2003-05-06 22:58:04 +00:00
Wim Taymans 69787c811a Documentation updates
Original commit message from CVS:
Documentation updates
2003-05-06 22:10:29 +00:00
Benjamin Otte 05adc8c15c implement proper refcounting of pad's templates and references from real pads to their ghost pads and the other way a...
Original commit message from CVS:
implement proper refcounting of pad's templates and references from real pads to their ghost pads and the other way around - this fixes the segfaults in the player
2003-05-06 21:58:49 +00:00
Wim Taymans 1bdcd2e7b6 err... reset to desired version after doing a benchmark :)
Original commit message from CVS:
err... reset to desired version after doing a benchmark :)
2003-05-06 21:04:46 +00:00
Wim Taymans 1dc969236f - Explicitly set buffer fields to default values instead of using memset, this seems to speed up buffer allocation by...
Original commit message from CVS:
- Explicitly set buffer fields to default values instead of using memset,
this seems to speed up buffer allocation by at least 30%
2003-05-06 21:03:34 +00:00
Benjamin Otte 50351bc28d remove unnecessary check for registries - registry gets rebuilt automagically anyway
Original commit message from CVS:
remove unnecessary check for registries - registry gets rebuilt automagically anyway
2003-05-02 21:13:19 +00:00
Benjamin Otte 33ef3f7d4d make gst-launch --gst-mask=-1 fakesrc ! fakesink work on Solaris
Original commit message from CVS:
make gst-launch --gst-mask=-1 fakesrc ! fakesink work on Solaris
2003-05-02 20:07:45 +00:00
Benjamin Otte cbe36c876b fix gcc 2.x compiler error, when variables aren't defined at the top.
Original commit message from CVS:
fix gcc 2.x compiler error, when variables aren't defined at the top.
2003-05-01 20:57:40 +00:00
Benjamin Otte 8bf9277aa3 unreachable code
Original commit message from CVS:
unreachable code
2003-05-01 20:16:14 +00:00
Benjamin Otte ca0fb4bea5 fix for forte
Original commit message from CVS:
fix for forte
2003-05-01 16:54:09 +00:00
Benjamin Otte c57955fc68 added GST_STR_NULL to check for NULL strings. Fixed a case where a char* given to printf was NULL to use that macro.
Original commit message from CVS:
added GST_STR_NULL to check for NULL strings. Fixed a case where a char* given to printf was NULL to use that macro.
2003-05-01 16:36:27 +00:00
Benjamin Otte fe9a0a6d05 silence forte warnings
Original commit message from CVS:
silence forte warnings
2003-05-01 15:16:17 +00:00
David Schleef 38b667a0aa Disable MIPS, 'cuz it's broken.
Original commit message from CVS:
Disable MIPS, 'cuz it's broken.
2003-05-01 01:11:52 +00:00
Benjamin Otte 7524c49140 offsets may be negative (nobody ever seeked beackwards, hu?)
Original commit message from CVS:
offsets may be negative (nobody ever seeked beackwards, hu?)
2003-04-28 21:48:37 +00:00
Benjamin Otte 91d22b150d fix deadlock when thread itself goes PLAYING => PAUSED => PLAYING
Original commit message from CVS:
fix deadlock when thread itself goes PLAYING => PAUSED => PLAYING
2003-04-28 00:01:31 +00:00
Benjamin Otte 9837c9dbaa add extra error for empty pipeline
Original commit message from CVS:
add extra error for empty pipeline
2003-04-27 23:56:31 +00:00
Benjamin Otte 775fbca9a5 Make events use internal links, too
Original commit message from CVS:
Make events use internal links, too
2003-04-27 21:34:01 +00:00
Wim Taymans a6766132e6 - remove some \n in GstThread debugging
Original commit message from CVS:
- remove some \n in GstThread debugging
- move the state change g_cond_signal to the set_state function to make
sure that we don't unlock the waiters before we completed the state
change.
2003-04-26 14:38:18 +00:00
Benjamin Otte fa69e9954c fix debugging segfault
Original commit message from CVS:
fix debugging segfault
2003-04-26 13:55:13 +00:00
Benjamin Otte a68e0b8324 fix and better comment gst_event_new_discontinuous. Nice memory leak there
Original commit message from CVS:
fix and better comment gst_event_new_discontinuous. Nice memory leak there
2003-04-26 01:54:01 +00:00
Benjamin Otte 8cebfd7528 I suck - it's the wrong variable and I don't get it for ages even while testing this code
Original commit message from CVS:
I suck - it's the wrong variable and I don't get it for ages even while testing this code
But while I was atit, I fixed it right this time (I hope)
2003-04-25 17:35:26 +00:00
Benjamin Otte b04519c43d just to be sure...
Original commit message from CVS:
just to be sure...
2003-04-25 00:26:09 +00:00
Benjamin Otte d02583b999 fix stupid segfault when setting integer properties
Original commit message from CVS:
fix stupid segfault when setting integer properties
2003-04-24 22:34:10 +00:00
Benjamin Otte 5d35141256 fix 2 warnings
Original commit message from CVS:
fix 2 warnings
2003-04-23 20:06:54 +00:00
Thomas Vander Stichele 582913dc84 make the user registry location major-minor versioned so it doesn't clash with older incompatible registries make gst...
Original commit message from CVS:
* make the user registry location major-minor versioned so it doesn't
clash with older incompatible registries
* make gst-register output the location of the registry it's writing
2003-04-23 19:59:38 +00:00
Benjamin Otte 313c399808 workaround for bison 1.35 bug
Original commit message from CVS:
workaround for bison 1.35 bug
2003-04-23 19:16:06 +00:00
Benjamin Otte b7077cab18 make gst_thread_get_current() work with threaded cothreads
Original commit message from CVS:
make gst_thread_get_current() work with threaded cothreads
2003-04-21 18:37:13 +00:00
Benjamin Otte fb14f53284 make that error message more useful, it kept confusing me
Original commit message from CVS:
make that error message more useful, it kept confusing me
2003-04-21 18:34:20 +00:00
Benjamin Otte 7f5dc1299b assorted fixes:
Original commit message from CVS:
assorted fixes:
- fix for #111146 (works now with lots of warnings (or maybe even without - the fun of races))
- more useful debugging output
- restructuring of when to release the lock
- emitting SHUTDOWN when holding lock so we're not destroyed while signalling
- probably something else I don't remember
2003-04-21 18:09:29 +00:00
Wim Taymans 22fa9810d6 GST_DEBUG/INFO doesn't need a \n at the end.
Original commit message from CVS:
GST_DEBUG/INFO doesn't need a \n at the end.
2003-04-19 11:52:07 +00:00
Wim Taymans 5af24ec4e5 - removed an assert, mmaping the stack of another thread seems to work fine.
Original commit message from CVS:
- removed an assert, mmaping the stack of another thread seems to work fine.
This makes the cothread based scheduler work again with the new GstThread.
2003-04-19 11:50:27 +00:00
Benjamin Otte 90dc6ded4d rewrite GstThread - should be quite a bit cleaner and does change state correctly now
Original commit message from CVS:
rewrite GstThread - should be quite a bit cleaner and does change state correctly now
2003-04-18 23:35:34 +00:00
Benjamin Otte 64a6a1d2bd - make child_state_change a virtual function
Original commit message from CVS:
- make child_state_change a virtual function
- remove unneeded != NULL checks
- implement gst_bin_sync_children_state
2003-04-18 23:34:21 +00:00
Benjamin Otte 78b4079072 make EOS really recursive and not just one layer deep
Original commit message from CVS:
make EOS really recursive and not just one layer deep
2003-04-18 23:31:18 +00:00
Wim Taymans e1bfecf799 - Added a property to perform caps negotiation in the chain function instead of using proxied negotiation.
Original commit message from CVS:
- Added a property to perform caps negotiation in the chain function instead
of using proxied negotiation.
2003-04-17 22:31:32 +00:00
Wim Taymans 9811bb9aad Added a simple function gst_pad_recover_caps_error that a plugin should call from now on (instead of gst_element_erro...
Original commit message from CVS:
Added a simple function gst_pad_recover_caps_error that a plugin
should call from now on (instead of gst_element_error). This function
will emit a caps_nego_failed signal that the app can catch to resolve
the negotiation failure.
2003-04-17 22:29:31 +00:00
Wim Taymans 8365acd9b6 Transform variable properties too
Original commit message from CVS:
Transform variable properties too
2003-04-17 22:21:13 +00:00
Benjamin Otte 95b23e597d release lock before doing signal handling
Original commit message from CVS:
release lock before doing signal handling
2003-04-17 19:51:28 +00:00
Wim Taymans fff499ea25 - don't be rude but give informative message about what went wrong.
Original commit message from CVS:
- don't be rude but give informative message about what went wrong.
2003-04-17 17:11:51 +00:00
Benjamin Otte 354e85056f another bugfix, i will never get used to using the retrun value of g_(s)list_prepend
Original commit message from CVS:
another bugfix, i will never get used to using the retrun value of g_(s)list_prepend
2003-04-17 14:52:38 +00:00
Benjamin Otte 30267f6a64 It's absolute fun if you don't find this. If an element claims a successful state change but did not actually change ...
Original commit message from CVS:
It's absolute fun if you don't find this. If an element claims a successful state change but did not actually change its state it is broken and the program deserves to crash. And hard. Can you hear I'm annoyed?
2003-04-17 13:52:41 +00:00
Colin Walters 900066617c Remove dummy signals, add full signal.
Original commit message from CVS:
Remove dummy signals, add full signal.
2003-04-17 09:19:34 +00:00
Benjamin Otte 45521ec77a bugfixing in pipeline parsing. Fixed the 2 pipelines that are now added to the testsuite
Original commit message from CVS:
bugfixing in pipeline parsing. Fixed the 2 pipelines that are now added to the testsuite
2003-04-16 21:37:35 +00:00
Benjamin Otte b36a2350ba *_is_writeable => *_is_writable (spelling)
Original commit message from CVS:
*_is_writeable => *_is_writable (spelling)
2003-04-16 18:35:57 +00:00
Benjamin Otte 42efbe5648 change *_is_readonly to *_is_writeable. Hope the name stays now...
Original commit message from CVS:
change *_is_readonly to *_is_writeable. Hope the name stays now...
2003-04-15 21:33:08 +00:00
Benjamin Otte ede90a27db remove left over _needs_copy_on_write
Original commit message from CVS:
remove left over _needs_copy_on_write
2003-04-15 19:22:05 +00:00
Benjamin Otte 3941b18ca9 remove left over GST_DATA_IS_READONLY
Original commit message from CVS:
remove left over GST_DATA_IS_READONLY
2003-04-15 19:16:51 +00:00
Benjamin Otte 4bf4de13ed Ouch: gst_element_dispose does a state change to NULL. Change the state to NULL yourself if you dispose plugins that ...
Original commit message from CVS:
Ouch: gst_element_dispose does a state change to NULL. Change the state to NULL yourself if you dispose plugins that reference some of the freed memory on state changes.

This is probably broken in lots of cases.
2003-04-15 18:46:09 +00:00
Benjamin Otte 6cb527fed3 API change: remove gst_object_destroy and #defines to it
Original commit message from CVS:
API change: remove gst_object_destroy and #defines to it
2003-04-15 18:43:57 +00:00
Benjamin Otte c016763611 API change: rename (currently unused function) gst_(data|buffer)_needs_copy_on_write to gst_(data|buffer)_is_readonly...
Original commit message from CVS:
API change: rename (currently unused function) gst_(data|buffer)_needs_copy_on_write to gst_(data|buffer)_is_readonly - we don't want to confuse even core developers
2003-04-15 18:41:23 +00:00
Wim Taymans 54b35086ea - make aggregator actually work
Original commit message from CVS:
- make aggregator actually work
2003-04-14 18:58:11 +00:00
Wim Taymans d19cc5f7a0 Updated makefile too..
Original commit message from CVS:
Updated makefile too..
2003-04-14 18:53:40 +00:00
Wim Taymans eb5536af92 - Added infrastructure to run a filter against plugins, registries and registrypools. This makes it possible to creat...
Original commit message from CVS:
- Added infrastructure to run a filter against plugins, registries and
registrypools. This makes it possible to create custom code to filter
out the plugins/features you're interested in.
2003-04-14 18:53:03 +00:00
Wim Taymans 4c33218ba3 - use g_list_foreach where apropriate
Original commit message from CVS:
- use g_list_foreach where apropriate
2003-04-14 18:38:11 +00:00
Benjamin Otte 838ffca4fa enable debugging output for bison parser, fix // comments, better error recovery, error out on non-instantiable eleme...
Original commit message from CVS:
enable debugging output for bison parser, fix // comments, better error recovery, error out on non-instantiable elements (fixes #110758)
2003-04-14 18:33:58 +00:00
David Schleef 7421b1f671 Revert last Makefile.am change, and fix it correctly. I _think_ this won't break with earlier flex versions, otherwi...
Original commit message from CVS:
Revert last Makefile.am change, and fix it correctly.  I _think_
this won't break with earlier flex versions, otherwise let me know.
2003-04-13 19:40:31 +00:00