Commit graph

1063 commits

Author SHA1 Message Date
Wim Taymans
29ae46b307 Fixed the missing .h file and some reorg (not sure what's best)
Original commit message from CVS:
Fixed the missing .h file and some reorg (not sure what's best)
2002-07-24 20:20:50 +00:00
Andy Wingo
74eba3a615 add default bufferpool, clean up some code, add bufferpool testing to fakesrc
Original commit message from CVS:
add default bufferpool, clean up some code, add bufferpool testing to fakesrc
2002-07-24 18:31:12 +00:00
Wim Taymans
e9f84e2738 - Documentation updates, renamed some _ methods because gtkdoc didn't want to generate docs for them.
Original commit message from CVS:
- Documentation updates, renamed some _ methods because gtkdoc didn't
want to generate docs for them.
- Add some more events for future use.
2002-07-13 23:12:22 +00:00
Wim Taymans
b43cf3886a Make sizeof(GstBuffer) independent of config.h and HAVE_ATOMIC_H. This still needs a more fundamental solution though.
Original commit message from CVS:
Make sizeof(GstBuffer) independent of config.h and HAVE_ATOMIC_H. This still
needs a more fundamental solution though.
2002-07-13 23:08:04 +00:00
Wim Taymans
713d471ddd Small documentation updates
Original commit message from CVS:
Small documentation updates
2002-07-13 23:05:46 +00:00
Andy Wingo
efafdb2aa6 be more lenient when loading unconnected pads
Original commit message from CVS:
be more lenient when loading unconnected pads
2002-07-12 19:13:19 +00:00
Thomas Vander Stichele
45d414338b Makefile.am portability fix better error handling, this solves the g_error_free assert error some people had
Original commit message from CVS:
Makefile.am portability fix
better error handling, this solves the g_error_free assert error some people
had
2002-07-12 14:14:30 +00:00
Thomas Vander Stichele
a64e400a97 lioux's virtual patch
Original commit message from CVS:
lioux's virtual patch
2002-07-11 21:38:23 +00:00
Thomas Vander Stichele
92de697c34 I'm too lazy to comment this
Original commit message from CVS:
combined patch by me and lioux@FreeBSD.org
2002-07-11 21:22:55 +00:00
David Schleef
ac47ece0a2 Fix GstBufferFlag so it's really an enum typedef, not a declaration.
Original commit message from CVS:
Fix GstBufferFlag so it's really an enum typedef, not a declaration.
2002-07-10 18:16:44 +00:00
Wim Taymans
4b1379455d Fix the g_mutex_free in the fallback case
Original commit message from CVS:
Fix the g_mutex_free in the fallback case
2002-07-09 15:45:14 +00:00
Thomas Vander Stichele
ecca9fa96a oops fix
Original commit message from CVS:
oops fix
2002-07-09 11:08:01 +00:00
Thomas Vander Stichele
dcb3cec6a0 merge from BRANCH-RELEASE-0_4_0
Original commit message from CVS:
merge from BRANCH-RELEASE-0_4_0
2002-07-09 10:27:22 +00:00
Wim Taymans
fcb10a6c85 - Removed bufferpool code and move that to gstbuffer.c
Original commit message from CVS:
- Removed bufferpool code and move that to gstbuffer.c
- implemented refcounting on GstData
- implemented new buffer code based on Company's work in the EVENTS2 branch
- added boxed types for GstData/GstEvent/GstBuffer/GstBufferPool
- added refcounting to bufferpools and events
- use lockfree allocation for buffers
- simplified the clock, use lockfree allocation
- use GQueue in GstQueue for faster access to the tail element
- update core plugins to the new event API
2002-07-08 19:22:02 +00:00
Wim Taymans
74b6b732f1 - Added a bunch of fast atomic operations on x86 with C fallbacks
Original commit message from CVS:
- Added a bunch of fast atomic operations on x86 with C fallbacks
- Added the code for refcounting in GstData
- Added a gstmemchunk allocator using atomic operations
2002-07-08 19:12:38 +00:00
Wim Taymans
80c371342b This one removes the unused code..
Original commit message from CVS:
This one removes the unused code..
2002-07-08 19:10:11 +00:00
Wim Taymans
ae87d97cb2 - Removed unused locking from the cothreads
Original commit message from CVS:
- Removed unused locking from the cothreads
- use G_*_DECLS in .h files
- remove gstlog.h include from gstobject.h, add to .c files
- removed unused refcounting code from gstobject
- small fixes in #includes
- Added Scheduling policy and priority properties to gstthread so that
SCHED_FIFO and SCHED_RR threads can be constructed.
2002-07-08 19:07:30 +00:00
Andy Wingo
160f5b168d if you can't write to the registry (ie it is root-owned and you are user) and it is out of date, just ignore it; plug...
Original commit message from CVS:
if you can't write to the registry (ie it is root-owned and you are user) and it
is out of date, just ignore it; plugin state will get written to the user reg
2002-07-05 16:18:18 +00:00
Wim Taymans
83f2253007 Set the scheduler to NULL in all cases.
Original commit message from CVS:
Set the scheduler to NULL in all cases.
2002-07-02 18:42:00 +00:00
David I. Lehn
202c3ac637 ignore generated enumtypes files.
Original commit message from CVS:
ignore generated enumtypes files.
2002-07-02 13:38:01 +00:00
David I. Lehn
bab2213048 add back gstenumtypes.h
Original commit message from CVS:
add back gstenumtypes.h
2002-07-02 13:37:28 +00:00
Christian Schaller
cc682cae6c commented out the munmap stuff again
Original commit message from CVS:
commented out the munmap stuff again
2002-06-29 16:26:47 +00:00
Thomas Vander Stichele
a155db2bfb more protective programming cothread 0 cleans up higher cothreads if they're still around use a magic number to prote...
Original commit message from CVS:
more protective programming
cothread 0 cleans up higher cothreads if they're still around
use a magic number to protect against mem corruption in the struct
flames welcome
2002-06-28 10:58:05 +00:00
Andy Wingo
2eb7f04289 free stack properly s/prefered/preferred/
Original commit message from CVS:
* free stack properly
* s/prefered/preferred/
2002-06-27 23:55:27 +00:00
Thomas Vander Stichele
781f489e87 no newlines
Original commit message from CVS:
no newlines
2002-06-27 22:24:36 +00:00
Thomas Vander Stichele
aa55a0450d no newlines
Original commit message from CVS:
no newlines
2002-06-27 22:23:51 +00:00
Thomas Vander Stichele
546dc898a6 fix a debug segfault
Original commit message from CVS:
fix a debug segfault
2002-06-27 22:22:42 +00:00
Thomas Vander Stichele
ef2f6e1fc4 ok, my latest added error checking and stuff this reverts uraeus's patch but should tell us what goes wrong with munmap
Original commit message from CVS:
ok, my latest added error checking and stuff
this reverts uraeus's patch but should tell us what goes wrong with munmap
2002-06-27 22:17:17 +00:00
Christian Schaller
7cc370b0bf Fixes suggested by thomasvs to get rhythmbox working with basic threads
Original commit message from CVS:
Fixes suggested by thomasvs to get rhythmbox working with basic threads

- int res;
+ int res = 0;

-  res = munmap ((void *) thread, COTHREAD_STACKSIZE);
+/*    res = munmap ((void *) thread, COTHREAD_STACKSIZE); */
2002-06-27 21:35:56 +00:00
Thomas Vander Stichele
8433fe5775 some debug info remove the preventive munmap reinstate the other munmap for cothread stocks which really should be th...
Original commit message from CVS:
some debug info
remove the preventive munmap
reinstate the other munmap for cothread stocks which really should be there IMO
2002-06-27 15:52:13 +00:00
Thomas Vander Stichele
61bb83ec4d back to basics
Original commit message from CVS:
back to basics
2002-06-27 11:34:37 +00:00
Thomas Vander Stichele
b7bc06aee5 ok, this seems to be the right fix for the basic scheduler.
Original commit message from CVS:
ok, this seems to be the right fix for the basic scheduler.
I'd appreciate it if :
a) someone looks over these minimal changes and tells me if they're done
in the right way (especially the alignment argument ;))
b) others run lots of pipes with basic and tell me if they still have
issues
If all goes well I want to revert to the basic scheduler and do a release
2002-06-26 08:22:17 +00:00
Thomas Vander Stichele
f4046ced1c hahaha
Original commit message from CVS:
hahaha
2002-06-25 12:09:32 +00:00
Thomas Vander Stichele
1ecc22c610 blind flying adding more debug output cleaning up according to man pages
Original commit message from CVS:
blind flying
adding more debug output
cleaning up according to man pages
2002-06-25 12:08:10 +00:00
Wim Taymans
bcb921d550 This makes more sense and solves the locking problem when a loop based element is selected as the entry point.
Original commit message from CVS:
This makes more sense and solves the locking problem when a loop based
element is selected as the entry point.
2002-06-23 12:50:12 +00:00
Wim Taymans
839c62927c Use new method to check for availability of threads
Original commit message from CVS:
Use new method to check for availability of threads
2002-06-23 12:43:45 +00:00
Wim Taymans
9cfd185748 Small cleanups
Original commit message from CVS:
Small cleanups
2002-06-23 12:42:52 +00:00
Wim Taymans
14186b75ea Or not..
Original commit message from CVS:
Or not..
2002-06-23 12:42:01 +00:00
Wim Taymans
b70675d241 Unlock an element even if it was a loop based one
Original commit message from CVS:
Unlock an element even if it was a loop based one
2002-06-23 12:21:50 +00:00
Andy Wingo
16074b7263 implement _destroy, and fix some bugs changing songs in the player doesn't work now, i don't know why yet
Original commit message from CVS:
implement _destroy, and fix some bugs

changing songs in the player doesn't work now, i don't know why yet
2002-06-23 04:31:45 +00:00
Thomas Vander Stichele
d3e33a16ac as promised, the header changes and some of wingo's virtual fixes as well by accident
Original commit message from CVS:
as promised, the header changes
and some of wingo's virtual fixes as well by accident
2002-06-22 23:17:44 +00:00
Wim Taymans
23dbddcd2c Don't seek past the end of the file
Original commit message from CVS:
Don't seek past the end of the file
Fix a bug where the mapend was incorrectly calculated when we read past
the end of the file.
2002-06-22 09:23:40 +00:00
Wim Taymans
69b7a292d6 Added a runtime option to use a dummy threading implementation that uses
Original commit message from CVS:
Added a runtime option to use a dummy threading implementation that uses
NOPs for all synchronisation and threading operations.
2002-06-21 14:50:00 +00:00
Andy Wingo
694b7ee912 cleanups
Original commit message from CVS:
cleanups
2002-06-21 14:35:45 +00:00
Wim Taymans
1fa83fa256 Pass some required params to cothreads_init
Original commit message from CVS:
Pass some required params to cothreads_init
2002-06-21 08:00:13 +00:00
Wim Taymans
3dd3895eea Added _get_prefered_stack to the scheduler
Original commit message from CVS:
Added _get_prefered_stack to the scheduler
2002-06-19 18:13:28 +00:00
Thomas Vander Stichele
87b2474153 is make distcheck that much to ask ?
Original commit message from CVS:
is make distcheck that much to ask ?
2002-06-18 09:00:23 +00:00
Wim Taymans
29cafb7481 Allocate a few more bytes as gmarkup reads past the end of the allocated buffer
Original commit message from CVS:
Allocate a few more bytes as gmarkup reads past the end of the
allocated buffer
2002-06-17 19:23:05 +00:00
Wim Taymans
f8ca62be6e Only revert the state of the failed element
Original commit message from CVS:
Only revert the state of the failed element
2002-06-17 16:00:10 +00:00
David I. Lehn
bb83c424e4 auto build some enum code.
Original commit message from CVS:
auto build some enum code.
useful for things like autogenerated python bindings.
2002-06-16 23:23:28 +00:00
Wim Taymans
b1125b04ba Added more debugging info
Original commit message from CVS:
Added more debugging info
2002-06-16 22:36:10 +00:00
Wim Taymans
7eb08447b9 Some small cleanups implement a default _clock_wait
Original commit message from CVS:
Some small cleanups
implement a default _clock_wait
2002-06-16 21:50:50 +00:00
Thomas Vander Stichele
8e0687e93d print the name
Original commit message from CVS:
print the name
2002-06-16 21:20:07 +00:00
Wim Taymans
02adc6b669 Better add the check instead of crashing
Original commit message from CVS:
Better add the check instead of crashing
2002-06-16 19:48:38 +00:00
Wim Taymans
bfca3a0739 Fixed the fast scheduler by proxying event to the event handler when the element is not event aware.
Original commit message from CVS:
Fixed the fast scheduler by proxying event to the event handler when the
element is not event aware.
2002-06-16 19:33:15 +00:00
Wim Taymans
36313bb0c7 Added --gst-version that does nothing else than to print out the core version number the app is using.
Original commit message from CVS:
Added --gst-version that does nothing else than to print out the core
version number the app is using.
2002-06-16 19:08:21 +00:00
Wim Taymans
4d85bfc2df Use setfunc to set the cothread function instead of _reset
Original commit message from CVS:
Use setfunc to set the cothread function instead of _reset
2002-06-16 17:34:14 +00:00
Thomas Vander Stichele
ac889ced82 changing default scheduler to wingo's spiffy standard one, since it doesn't look up for as many users as basic ;)
Original commit message from CVS:
changing default scheduler to wingo's spiffy standard one, since it
doesn't look up for as many users as basic ;)
2002-06-16 10:33:55 +00:00
Wim Taymans
32f702aa20 Better error handling when mmap'ing
Original commit message from CVS:
Better error handling when mmap'ing
2002-06-15 16:12:20 +00:00
Wim Taymans
9286f126e2 Added a size event to optimize buffer sizes make filesrc update its blocksize when it receives a size event
Original commit message from CVS:
Added a size event to optimize buffer sizes
make filesrc update its blocksize when it receives a size event
2002-06-13 22:27:40 +00:00
Thomas Vander Stichele
319a6a3672 strange this didn't get commited on a regular commit
Original commit message from CVS:
strange this didn't get commited on a regular commit
2002-06-13 15:08:52 +00:00
Wim Taymans
c8e8981be8 Documentation updates
Original commit message from CVS:
Documentation updates
Make spider forward bufferpools
Remove some old registry code
2002-06-12 22:26:36 +00:00
Wim Taymans
19055c8091 Removed deprecated disksink
Original commit message from CVS:
Removed deprecated disksink
2002-06-11 21:06:53 +00:00
Thomas Vander Stichele
4cd77fab14 xavpatch
Original commit message from CVS:
xavpatch
2002-06-11 21:03:48 +00:00
Steve Baker
a415cdd34e remove the "iterate_started" signal and replace it with pre_iterate and post_iterate callbacks.
Original commit message from CVS:
remove the "iterate_started" signal and replace it with pre_iterate and post_iterate callbacks.

Apps can now put a lock around an iterate so they can do stuff on the bin from another thread. much nicer than the signal approach.
2002-06-10 16:48:47 +00:00
Wim Taymans
280affd3df Remove old flag
Original commit message from CVS:
Remove old flag
2002-06-09 21:14:48 +00:00
Wim Taymans
da176ab8ca Added the flush flag
Original commit message from CVS:
Added the flush flag
2002-06-09 12:13:56 +00:00
Wim Taymans
3ab6d4c0e2 Whan the buffer is filled, the buffer is kept and added to the queue when there is room again. Don't do this after a ...
Original commit message from CVS:
Whan the buffer is filled, the buffer is kept and added to the queue
when there is room again. Don't do this after a flush.
2002-06-09 12:13:30 +00:00
Wim Taymans
a358f61b5f Loop the clock providers until we find one with a clock.
Original commit message from CVS:
Loop the clock providers until we find one with a clock.
2002-06-08 23:45:53 +00:00
Wim Taymans
ce100a8211 Revert queue event forwarding, added comments what it is supposed to do.
Original commit message from CVS:
Revert queue event forwarding, added comments what it is supposed to do.
2002-06-08 16:30:43 +00:00
Steve Baker
89f8aec72e g_print bad
Original commit message from CVS:
g_print bad
2002-06-08 16:15:02 +00:00
Steve Baker
e9e6b0797d put upstream events in an async queue and resend them at the start of the chain. not working as expected yet but a start
Original commit message from CVS:
put upstream events in an async queue and resend them at the start of the chain. not working as expected yet but a start
2002-06-08 16:13:18 +00:00
Wim Taymans
f50d53e209 A discont event is the right way to handle seeking on filesink IMO
Original commit message from CVS:
A discont event is the right way to handle seeking on filesink IMO
2002-06-08 15:00:30 +00:00
Wim Taymans
9e238148e1 Added element query
Original commit message from CVS:
Added element query
2002-06-08 14:59:34 +00:00
Wim Taymans
225d11913c Return the result of the forwarded seek instead of TRUE
Original commit message from CVS:
Return the result of the forwarded seek instead of TRUE
2002-06-08 14:58:03 +00:00
Wim Taymans
3824189da5 Add an event function so that seek events are not forwarded when we have a cache, seeking in the cache still needs to...
Original commit message from CVS:
Add an event function so that seek events are not forwarded when we
have a cache, seeking in the cache still needs to be implemented though..
2002-06-08 12:51:11 +00:00
Steve Baker
174324865f INT64 is good for passing timestamps in signals
Original commit message from CVS:
INT64 is good for passing timestamps in signals
2002-06-08 11:57:49 +00:00
Steve Baker
7ae62fa9bf a couple of fixes here:
Original commit message from CVS:
a couple of fixes here:
- forward eos events to all src pads, even if spider didn't connect them. this ensures that the pipeline will stay in a consistant state even when not all pads are sent data
- don't check for nonnull spider until it is actually needed.  it really is null when it has been disposed and this method is called.
2002-06-07 19:41:35 +00:00
Steve Baker
a02e75b8d4 make sure gst_spider_plug isn't called while in playing state
Original commit message from CVS:
make sure gst_spider_plug isn't called while in playing state
2002-06-07 19:37:00 +00:00
Steve Baker
9546949ebf added a "iterate_started" signal which fires before the iterate of a bin. useful for non-threadsafe operations like s...
Original commit message from CVS:
added a "iterate_started" signal which fires before the iterate of a bin. useful for non-threadsafe operations like seek in threaded pipelines
2002-06-07 19:34:52 +00:00
Steve Baker
075ca64022 file is opened in ready->paused rather than null->ready. this makes it easier to set the location more than once
Original commit message from CVS:
file is opened in ready->paused rather than null->ready. this makes it easier to set the location more than once
2002-06-07 19:32:53 +00:00
Wim Taymans
d939cb1a4f Fix the case where one of the pads is a ghostpad.
Original commit message from CVS:
Fix the case where one of the pads is a ghostpad.
2002-06-05 18:56:31 +00:00
Wim Taymans
be30fb14fd Set the right scheduler on the pads of decoupled elements.
Original commit message from CVS:
Set the right scheduler on the pads of decoupled elements.
2002-06-05 18:10:55 +00:00
Wim Taymans
b7b63ff4cd Make sure we interrupt the right scheduler on the right pad.
Original commit message from CVS:
Make sure we interrupt the right scheduler on the right pad.
2002-06-05 18:10:07 +00:00
Wim Taymans
a0979c2ddc Some sanity checking emit a warning when interrupting a queue bacause we do it wrongly
Original commit message from CVS:
Some sanity checking
emit a warning when interrupting a queue bacause we do it wrongly
2002-06-04 23:00:36 +00:00
Wim Taymans
005a79ba91 No \n for DEBUG, thank you
Original commit message from CVS:
No \n for DEBUG, thank you
2002-06-04 21:04:41 +00:00
Wim Taymans
62cea79ba7 Some cleanups, refactor some code, make sure the decoupled peer element has the right handlers
Original commit message from CVS:
Some cleanups, refactor some code, make sure the decoupled peer element
has the right handlers
2002-06-04 21:03:35 +00:00
Wim Taymans
9c06c22359 Fix define
Original commit message from CVS:
Fix define
2002-06-04 21:01:58 +00:00
Wim Taymans
9d4eee380a Fix a little typo, unlock the peer element if it's decoupled instead of our own element
Original commit message from CVS:
Fix a little typo, unlock the peer element if it's decoupled instead
of our own element
2002-06-04 21:01:10 +00:00
Wim Taymans
ed1d8a37b8 Add iterate mutex for future use
Original commit message from CVS:
Add iterate mutex for future use
2002-06-03 19:53:47 +00:00
Wim Taymans
d88e845615 Poll instead of blocking when waiting for a state change
Original commit message from CVS:
Poll instead of blocking when waiting for a state change
2002-06-03 19:50:41 +00:00
Steve Baker
8713cd5e0e add an optional timeout for when queue blocks. when timeout is reached a GST_EVENT_FILLER is sent downstream
Original commit message from CVS:
add an optional timeout for when queue blocks. when timeout is reached a GST_EVENT_FILLER is sent downstream
This is needed for gst-player since videosink has to be in the same thread as the ui, and spider blocks when there is no video (thus freezing the ui).
2002-06-03 15:44:28 +00:00
Wim Taymans
13da8d6e09 Removed \n in DEBUG some buffer flags for future use
Original commit message from CVS:
Removed \n in DEBUG
some buffer flags for future use
2002-06-02 21:45:16 +00:00
Wim Taymans
a872862453 If format and source are the same, we allready know the result in the convert function
Original commit message from CVS:
If format and source are the same, we allready know the result in
the convert function
2002-06-02 20:10:46 +00:00
Wim Taymans
7e1a122599 Some sanity checking for when the element was removed from the pipeline.
Original commit message from CVS:
Some sanity checking for when the element was removed from the pipeline.
2002-06-02 17:44:20 +00:00
Andy Wingo
0694a337a1 Properly fix locking in the scheduler
Original commit message from CVS:
Properly fix locking in the scheduler
2002-06-02 16:20:09 +00:00
Thomas Vander Stichele
641b5a1e5d UNITS is better.
Original commit message from CVS:
UNITS is better.
2002-06-02 15:48:13 +00:00
Wim Taymans
74f97cd6f8 Don't update state if the peer event failed
Original commit message from CVS:
Don't update state if the peer event failed
2002-06-02 15:34:34 +00:00
Wim Taymans
816275f8ad Make clock use nanoseconds
Original commit message from CVS:
Make clock use nanoseconds
2002-06-02 13:24:35 +00:00
Wim Taymans
ee7c28d455 Remove the media specific types, the unit type is now defined by the caps (frames/samples/etc..)
Original commit message from CVS:
Remove the media specific types, the unit type is now defined by the
caps (frames/samples/etc..)
2002-06-02 11:54:36 +00:00