Commit graph

287 commits

Author SHA1 Message Date
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
41ca38a36d added colorization of DEBUG and INFO, and a comment in gstelement.h
Original commit message from CVS:
added colorization of DEBUG and INFO, and a comment in gstelement.h
2001-04-27 20:47:21 +00:00
Wim Taymans
89a89a8665 Tried to get the autoplugger working by setting the pipeline to PAUSED before attempting to connect pads...
Original commit message from CVS:
Tried to get the autoplugger working by setting the pipeline to PAUSED before
attempting to connect pads...
2001-04-27 20:45:18 +00:00
Erik Walthinsen
c5cce64b7b fixed cothread_current_main so it, um, works.
Original commit message from CVS:
fixed cothread_current_main so it, um, works.
2001-04-27 01:46:14 +00:00
Erik Walthinsen
cea5e50a9d added cothread_current_main with (void) args
Original commit message from CVS:
added cothread_current_main with (void) args
2001-04-27 01:42:19 +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
583f6660fa Merged from HEAD to INCSCHED1 on 200104251
Original commit message from CVS:
Merged from HEAD to INCSCHED1 on 200104251
2001-04-26 01:53:20 +00:00
Erik Walthinsen
7b28fc9215 fixed a locking issue
Original commit message from CVS:
fixed a locking issue
2001-04-25 23:30:23 +00:00
Erik Walthinsen
284bfca414 Added element-level locking support, implemented for cothreads with a mutex held whenever an element is actually curr...
Original commit message from CVS:
Added element-level locking support, implemented for cothreads with a mutex
held whenever an element is actually currently running.  This should be done
with atomic variables eventually, but the best I can find is to use
<asm/spinlock.h> from the kernel, which brings in too much for my taste.

Also increased cothread stack size to 32KB and max cothread count to 64,
which fits within the default pthread 2MB stack.  It would probably be good
to do a pthread_attr_getstacksize() to verify that it's 2MB, and if
linuxthreads had a pthread_attr_setstacksize(), we could remove these
limits.
2001-04-25 22:32:17 +00:00
Erik Walthinsen
7a34155777 brought in autoplug dir from HEAD after screwed up merge
Original commit message from CVS:
brought in autoplug dir from HEAD after screwed up merge
2001-04-16 23:17:54 +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
88c57bd3f6 /me is an idiot. cvs add gsttypes.h
Original commit message from CVS:
/me is an idiot.  cvs add gsttypes.h
2001-03-12 01:13:04 +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
3b2990b425 update to latest copy
Original commit message from CVS:
update to latest copy
2001-03-09 18:50:12 +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
5782e4477b Fixed bug with reconfig, where switching back into an element landed it in code that still thought it was connected t...
Original commit message from CVS:
Fixed bug with reconfig, where switching back into an element landed it
in code that still thought it was connected to the previous element.  It
now checks to see if the peer's peer has changed, and deal accordingly.
2001-02-21 00:57:15 +00:00
Erik Walthinsen
999f30ff02 Significant progress. Now able to do most operations live, without any failure. tests/incsched.c currently faults a...
Original commit message from CVS:
Significant progress.  Now able to do most operations live, without any
failure.  tests/incsched.c currently faults at the last iteration, not
yet sure why.
2001-02-20 08:19:05 +00:00
Erik Walthinsen
0871fad29b More incsched progress. Should be able to get itereration going again tomorrow.
Original commit message from CVS:
More incsched progress.  Should be able to get itereration going again
tomorrow.
2001-02-18 10:00:04 +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
3ff90ac8fb More incsched updates. Now need to get the headers redone...
Original commit message from CVS:
More incsched updates.  Now need to get the headers redone...
2001-02-14 23:23:03 +00:00
Erik Walthinsen
08427ffb2a Minor changes to incsched stuff, need to make more major modifications to manager concept now, so I'm checkpointing.
Original commit message from CVS:
Minor changes to incsched stuff, need to make more major modifications to manager concept now, so I'm checkpointing.
2001-02-13 02:40:24 +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
1a66e83975 - backported the xml load bug in the properties
Original commit message from CVS:
- backported the xml load bug in the properties
- backported the videosink bug
- make sure the regiontype is set to NONE after a getregion
- an ugly fix (copy the chainfunction outselves) to make the avidecoder
work again.
2001-02-10 14:46:37 +00:00
Erik Walthinsen
588c6968f9 Fixed cothreads.c problems with make dist. This still sucks badly.
Original commit message from CVS:
Fixed cothreads.c problems with make dist.  This still sucks badly.
2001-02-07 22:07:22 +00:00
Erik Walthinsen
c17ed10404 Reworked getregion/pullregion stuff. Region is now specified by a type (OFFSET_LEN, TIME_LEN, etc.) and two guint64'...
Original commit message from CVS:
Reworked getregion/pullregion stuff.  Region is now specified by a type
(OFFSET_LEN, TIME_LEN, etc.) and two guint64's.  They are offset and len,
where offset can be used for the time field, and len would be zero or
the time unit (say, 33ms for video).
2001-02-05 17:16:23 +00:00
Erik Walthinsen
38ff9ae802 moved asyncdisksrc to disksrc, no point in having a distinction
Original commit message from CVS:
moved asyncdisksrc to disksrc, no point in having a distinction
2001-02-04 21:37:14 +00:00
Erik Walthinsen
db5b4fbb46 ARM works!
Original commit message from CVS:
ARM works!
2001-01-31 22:54:08 +00:00
Wim Taymans
804c1b2653 Documentation updates.
Original commit message from CVS:
Documentation updates.
2001-01-31 20:27:00 +00:00
Wim Taymans
1a5cfae0f6 Added a first attempt for XML embedding in the main core XML.
Original commit message from CVS:
Added a first attempt for XML embedding in the main core XML.
Objects will emit a signal that a user app can connect to in order to
insert its XML into the tree.
You can catch the object_loaded signal in GstXML to parse the user
supplied XML data in the stream. The object_loaded signal is implemented
with a custom made class signal. All GstObject classes now automatically
create a GstSignalObject that serves as a proxy to the user app when an
object is loaded. All objects are currently responsible to emit the
class signal themselves.
runxml and createxml serve as an example how the XML hooks can be used to
insert and retrieve custom XML tags.
2001-01-30 23:53:04 +00:00
Wim Taymans
eaeadf52e3 Lots of plugins fixes where the parentage macros were replaced with the correct gst_*_get_parent.
Original commit message from CVS:
Lots of plugins fixes where the parentage macros were replaced with the
correct gst_*_get_parent.
Updated the example.
'gstreamer' now is the doc type instead of GST-Pipeline
2001-01-29 23:50:29 +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