Commit graph

83 commits

Author SHA1 Message Date
Erik Walthinsen
14897b5364 forgot to unset SPINNING, no idea how it worked before, maybe this will fix wtay's case
Original commit message from CVS:
forgot to unset SPINNING, no idea how it worked before, maybe this will fix wtay's case
2001-05-25 19:16:31 +00:00
Erik Walthinsen
91afe9cd73 Swapped PAUSED and PLAYING states, reworked thread interlocking.
Original commit message from CVS:
Swapped PAUSED and PLAYING states, reworked thread interlocking.
States are now: NULL <-> READY <-> PAUSED <-> PLAYING.

Had do update dv1394src, gst_arts, and xmmsinput, please test these out!

Cleaned up DEBUG output in several places to by much much less verbose
but still just as useful (denser).
2001-05-25 17:35:47 +00:00
Erik Walthinsen
a7cd58c92e fixed some interruptability problems with thread and queue
Original commit message from CVS:
fixed some interruptability problems with thread and queue
2001-05-25 00:29:25 +00:00
Erik Walthinsen
31750806b2 added better thread id debugging support
Original commit message from CVS:
added better thread id debugging support
2001-05-24 21:46:51 +00:00
Erik Walthinsen
43b635e3d0 fixed thread lock mis-merge
Original commit message from CVS:
fixed thread lock mis-merge
2001-05-24 20:36:59 +00:00
Erik Walthinsen
f5314d44b4 Merge from HEAD into INCSCHED1 at 200105231.
Original commit message from CVS:
Merge from HEAD into INCSCHED1 at 200105231.
2001-05-24 00:46:45 +00:00
Erik Walthinsen
aa743e581b Updates to DEBUG system: moved statename into gstelement.c, colorized the states:
Original commit message from CVS:
Updates to DEBUG system: moved statename into gstelement.c, colorized the
states:

NULL: white
READY: read
PAUSED: yellow
PLAYING: green
2001-05-21 23:23:39 +00:00
Wim Taymans
d374791e8b Slighly take a different approach for object destruction, using the real _remove functions so that the scheduler has ...
Original commit message from CVS:
Slighly take a different approach for object destruction, using the real
_remove functions so that the scheduler has a chance to destroy its state
too.
This breaks the thread with ghostpads destruction case for now.
2001-05-16 22:08:40 +00:00
Wim Taymans
cff4720acf Added ghostpad destruction.
Original commit message from CVS:
Added ghostpad destruction.
2001-05-15 19:25:31 +00:00
Wim Taymans
58085b9304 slightly different refcount handling. the pad shutdown function doesn't remove the pad from the parent because the pa...
Original commit message from CVS:
slightly different refcount handling. the pad shutdown function doesn't
remove the pad from the parent because the parent is needed in the destroy
function.
2001-05-14 21:20:31 +00:00
Wim Taymans
6f9ac3667b Fixed a leak in bin destruction
Original commit message from CVS:
Fixed a leak in bin destruction
More refcounting fixes
2001-05-12 18:04:20 +00:00
Erik Walthinsen
89aa4a3810 - Fixed up a bunch of warnings.
Original commit message from CVS:
- Fixed up a bunch of warnings.
- Fixed buffer_copy (alloc correct size)
- Added start of autoplugger meta-element
2001-05-10 08:16:36 +00:00
Erik Walthinsen
e88151bc2e fixed gst_scheduler_pad_disconnect (never ignore compiler warnings\!) and updated a few INFO lines
Original commit message from CVS:
fixed gst_scheduler_pad_disconnect (never ignore compiler warnings\!) and updated a few INFO lines
2001-05-06 22:12:46 +00:00
Erik Walthinsen
7fdca5f428 Updated the colorization a bit more, and did a significant pass through all the other code to change categories on DE...
Original commit message from CVS:
Updated the colorization a bit more, and did a significant pass through all
the other code to change categories on DEBUG and INFO statements to be
correct, and not simply zero.  There are still more, but this is a good
first pass.
2001-04-28 02:54:53 +00:00
Matt Howell
7678183d1a fixed another thread synch case... better debug
Original commit message from CVS:
fixed another thread synch case... better debug
2001-04-28 01:46:00 +00:00
Matt Howell
cb0068581c initial fix of thread synch for queues and state change
Original commit message from CVS:
initial fix of thread synch for queues and state change
2001-04-27 20:55:47 +00:00
Erik Walthinsen
0e6ec7d33d gstbin.c: commented out the requirement that a bin be !PLAYING to add gstthread.c: fixed an old failed merge that loc...
Original commit message from CVS:
gstbin.c: commented out the requirement that a bin be !PLAYING to add
gstthread.c: fixed an old failed merge that locked the same mutex twice
...in a row
2001-04-26 22:32:13 +00:00
Erik Walthinsen
e6a59c8a62 Merged HEAD from BRANCH-INCSCHED1-200104161 into BRANCH-INCSCHED1.
Original commit message from CVS:
Merged HEAD from BRANCH-INCSCHED1-200104161 into BRANCH-INCSCHED1.
2001-04-16 21:43:28 +00:00
Erik Walthinsen
395527b2f2 latest updates, things are very close to working
Original commit message from CVS:
latest updates, things are very close to working
2001-04-15 23:59:02 +00:00
Erik Walthinsen
f75bb0f38b snapshot for matth to work with while I fly over to Europe....
Original commit message from CVS:
snapshot for matth to work with while I fly over to Europe....
2001-03-30 00:06:43 +00:00
Zaheer Abbas Merali
8a10800420 Fixed locking issue when PLAYING to READY
Original commit message from CVS:
Fixed locking issue when PLAYING to READY
2001-03-16 00:49:05 +00:00
Erik Walthinsen
54e416683a fixed READY_TO_NULL bug
Original commit message from CVS:
fixed READY_TO_NULL bug
2001-03-13 02:20:03 +00:00
Zaheer Abbas Merali
03d8077ee2 removed fine grained locking and added simultaneous waiting for 2 states
Original commit message from CVS:
removed fine grained locking and added simultaneous waiting for 2 states
2001-03-13 01:44:44 +00:00
Zaheer Abbas Merali
e7b0927f99 exactly opposite check needed in wait_thread
Original commit message from CVS:
exactly opposite check needed in wait_thread
2001-03-13 01:24:17 +00:00
Zaheer Abbas Merali
e143ca77fb made wait_thread check for logical true rather than check equality with gboolean
Original commit message from CVS:
made wait_thread check for logical true rather than check equality with gboolean
2001-03-13 01:08:12 +00:00
Zaheer Abbas Merali
518f0ac5d1 changed debug to print unsigned not signed
Original commit message from CVS:
changed debug to print unsigned not signed
2001-03-13 00:57:24 +00:00
Zaheer Abbas Merali
5561a9e79c TYPO: ISSET should be IS_SET
Original commit message from CVS:
TYPO: ISSET should be IS_SET
2001-03-13 00:46:57 +00:00
Zaheer Abbas Merali
9f51259c73 added debug to signal noting the result of the flag after being set
Original commit message from CVS:
added debug to signal noting the result of the flag after being set
2001-03-13 00:45:11 +00:00
Zaheer Abbas Merali
10de3d17c1 Made locks more granular, one lock for each state
Original commit message from CVS:
Made locks more granular, one lock for each state
2001-03-13 00:39:35 +00:00
Zaheer Abbas Merali
33b6cb333e made cond_wait into cond_timedwait
Original commit message from CVS:
made cond_wait into cond_timedwait
2001-03-13 00:09:37 +00:00
Zaheer Abbas Merali
8fc64053fc repositioning of debug after mutex in wait_thread and signal_thread
Original commit message from CVS:
repositioning of debug after mutex in wait_thread and signal_thread
2001-03-12 23:39:25 +00:00
Zaheer Abbas Merali
93cca29397 typo in GST_DEBUG in signal_thread
Original commit message from CVS:
typo in GST_DEBUG in signal_thread
2001-03-12 23:28:38 +00:00
Zaheer Abbas Merali
be811977bf Changed GST_DEBUG in signal_thread and wait_thread to reveal more info
Original commit message from CVS:
Changed GST_DEBUG in signal_thread and wait_thread to reveal more info
2001-03-12 23:27:33 +00:00
Zaheer Abbas Merali
954f21acf6 added a set flag to end of gst_thread_signal_thread and gst_signal_wait_thread to indicate whether signal should set ...
Original commit message from CVS:
added a set flag to end of gst_thread_signal_thread and gst_signal_wait_thread
to indicate whether signal should set flag or unset flag, and whether wait
should wait for flag to be set or to be unset.  this is needed for
PLAYING_TO_PAUSE where STATE_SPINNING needs to be signalled to be unset
2001-03-12 02:44:17 +00:00
Zaheer Abbas Merali
8c5bad4956 making wait for REAPING state when gst_bin_iterate returns non zero
Original commit message from CVS:
making wait for REAPING state when gst_bin_iterate returns non zero
2001-03-12 01:55:13 +00:00
Zaheer Abbas Merali
d2c506810a added debug statement
Original commit message from CVS:
added debug statement
2001-03-12 01:37:35 +00:00
Erik Walthinsen
1abf5ae7a6 some cleanup and compile fixes
Original commit message from CVS:
some cleanup and compile fixes
2001-03-12 00:37:33 +00:00
Zaheer Abbas Merali
9b6906c4df Start of merging syncflags in with states
Original commit message from CVS:
Start of merging syncflags in with states
2001-03-12 00:28:30 +00:00
Erik Walthinsen
781b4f7ecb commit to broken code that needs inspecting
Original commit message from CVS:
commit to broken code that needs inspecting
2001-03-09 18:33:14 +00:00
Erik Walthinsen
df32997396 Yes!, incsched is getting closer.
Original commit message from CVS:
Yes!, incsched is getting closer.
2001-02-17 07:11:12 +00:00
Erik Walthinsen
8edfe3f5de First round of incremental scheduling. Manager setting and managed_elements lists are now handled at bin_add/remove ...
Original commit message from CVS:
First round of incremental scheduling.  Manager setting and managed_elements
lists are now handled at bin_add/remove time.  Scheduling chains can be
created incrementally as well, though there are still some pieces missing.
2001-02-12 23:08:07 +00:00
Wim Taymans
51cbf22624 This is a megapatch with the following changes:
Original commit message from CVS:
This is a megapatch with the following changes:

- moved the gchar *name to GstObject, removed the ones in GstElement and
GstPad.
- moved the parent handling completely into GstObject. This cause *all* of
the plugins to fail (except those that used gst_pad_get_parent)
- rearanged the XML save handling.
- GstObject now has a class function save/restore_thyself.
- GstObject has a generic method gst_object_save_thyself, this makes it
possible to fire a signal wehever a new object is loaded. This is needed
so we can add XML save hooks.
- GstXML API has changed slightly. You now have to create a GstXML object
first before you can actually load something. This makes it possible to
attach a signal to GstXML whenever an object is loaded. I'm not sure we
will keep this interface.
- GstObject can now print the path_string without knowing about the GstPad and
GstElement types.
- Added gst_bin_get_by_name_recurse_up to lookup an element in the current
element hierarchy.
- added XML namespaces to the saved pipelines the namespace is:
http://gstreamer.net/gst-core/1.0/
namespaces are needed to distinguish user generated XML from the core XML.

Note that the plugins still contain a macro GST_OBJECT_PARENT that will be
replaced with gst_pad_get_parent shortly.
2001-01-29 00:06:02 +00:00
Wim Taymans
75aa948e0c Docs updates
Original commit message from CVS:
Docs updates
Added XML load from memory functionality
Undid the videosink patch, something else is wrong now on my machine:
no MMX acceleration :-(
2001-01-21 23:20:46 +00:00
Wim Taymans
044c4611af More eos handling, bin in bin is handled correctly now.
Original commit message from CVS:
More eos handling, bin in bin is handled correctly now.
Updated gstreamer-launch to loop while !EOS.
2001-01-21 16:06:42 +00:00
Wim Taymans
7ce56f5dab More EOS changes.
Original commit message from CVS:
More EOS changes.
When a bin2 is found inside a bin1, we add the bin2 to the EOS providers
of the bin1. When there is nothing more to schedule in bin1 and bin2 has
fired EOS, bin1 is in EOS.
The queue overrides the EOS notification and calls EOS on the src pad
when the queue is empty and the sink pad is in EOS.
2001-01-20 17:59:25 +00:00
Erik Walthinsen
7c51d6e0ca Cleaned up the docs a bit.
Original commit message from CVS:
Cleaned up the docs a bit.
2001-01-06 22:05:15 +00:00
Erik Walthinsen
1e04cefaf2 Mega update of INFO, DEBUG, and ERROR subsystems, renamed with GST_ prefix.
Original commit message from CVS:
Mega update of INFO, DEBUG, and ERROR subsystems, renamed with GST_ prefix.
GST_DEBUG now takes a category parameter, which is the same as GST_INFO
system.  They are now called GST_CAT_*.  All the GST_DEBUGs are set to 0
for now, we need to go and fix all these eventually.
2001-01-01 03:14:40 +00:00
Wim Taymans
860ada25b1 Fixed MPEG2 autoplugging
Original commit message from CVS:
Fixed MPEG2 autoplugging
Added some more INFO to gstthread
2000-12-30 17:42:15 +00:00
Erik Walthinsen
ca1c48e95c Updated copyright in all the libgst files.
Original commit message from CVS:
Updated copyright in all the libgst files.
Created gst_private.h, set up all files to use it.
2000-12-28 22:12:02 +00:00
Wim Taymans
9655c3b593 Updated the API docs.
Original commit message from CVS:
Updated the API docs.
2000-12-28 21:42:23 +00:00