Commit graph

250 commits

Author SHA1 Message Date
Wim Taymans 91f9620700 Another merge from HEAD into CAPSNEGO1
Original commit message from CVS:
Another merge from HEAD into CAPSNEGO1
2001-03-12 20:04:22 +00:00
Wim Taymans b2a8888398 Small fixes, most notably the GST_PAD_CONNECTED macro that didn't work for ghostpads.
Original commit message from CVS:
Small fixes, most notably the GST_PAD_CONNECTED macro that didn't work
for ghostpads.
2001-03-11 19:31:14 +00:00
Wim Taymans 095226658a Merge the HEAD branch into AUTOPLUG2.
Original commit message from CVS:
Merge the HEAD branch into AUTOPLUG2.
More work on the negotiation process to allow for proxied negotiation
which is needed in the queue.
gst_pad_connect perform a negotiation and returns a gboolean indicating
successfull connection. The pads are disconnected when negotiation fails.
I'm not satisfied/sure about the implementation yet, needs some more
investigation.
2001-03-11 16:29:29 +00:00
Wim Taymans 2d181e4d1d A first attempt at pad negotiation.
Original commit message from CVS:
A first attempt at pad negotiation.
- _renegotiate can be called by a plugin to negotiate the caps
- _renegotiate is called whenever a pad changes its caps
- the caps cannot contain lists or ranges
- the pad caps are now only set explicitly using gst_pad_set_caps, the
padtemplate caps are not transfered to the pad caps.

missing:
- no notification when negotiation fails
- autoplugging is broken
- the editor doesn't show correct caps
2001-02-19 20:20:19 +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
Wim Taymans 59211a49ff Updated the docs with the new _request methods
Original commit message from CVS:
Updated the docs with the new _request methods
2001-01-23 20:03:07 +00:00
Richard Boulton d20f0b4bae Add gst_element_request_compatible_pad and remove gst_element_request_pad.
Original commit message from CVS:
Add gst_element_request_compatible_pad and remove gst_element_request_pad.
Implemented something reasonable for gst_element_request_compatible_pad,
but havn't tested much: it won't work for tee because the pad templates
have no caps, and negotiation is not yet written, so it is assumed that the
tee pads can't connect to anything.
2001-01-23 18:42:23 +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
Sepp Wijnands 8c54486378 the 'OSS hangs when opening the device when in use' bug.
Original commit message from CVS:
Applied the patch from Sepp Wijnands <mrrazz@garbage-coderz.net> that solves
the 'OSS hangs when opening the device when in use' bug.
2001-01-21 00:57:50 +00:00
Wim Taymans 5c27fa2ac4 Check for NULL buffers before chaining/pushing them to the next element.
Original commit message from CVS:
Check for NULL buffers before chaining/pushing them to the next element.
NULL buffers happen on EOS.
gst_bin_iterate now returns a gboolean indicating something usefull happened.
It the bin is EOS, it returns FALSE.
2001-01-20 18:20:17 +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
Wim Taymans 0a9cc5f2fe Make sure the loopfunction ends when an element goes to EOS.
Original commit message from CVS:
Make sure the loopfunction ends when an element goes to EOS.
Fixed the fakesrc bug found by taaz.
2001-01-20 03:28:37 +00:00
Wim Taymans fdaa2307da A very small change to make eos somewhat work. no inner bins are checked.
Original commit message from CVS:
A very small change to make eos somewhat work. no inner bins are checked.
When an element fires EOS, the chain with that element is removed from
the scheduler (marked inactive). If all chains are inactive, the bin
fires EOS.
2001-01-20 03:10:44 +00:00
Erik Walthinsen 4a5ed7bf58 Got ghostpads to work, even in -launch. Needs more testing still.
Original commit message from CVS:
Got ghostpads to work, even in -launch.  Needs more testing still.
2001-01-20 02:57:46 +00:00
Wim Taymans 9b3f1277ce API docs updates
Original commit message from CVS:
API docs updates
2001-01-19 22:15:21 +00:00
Erik Walthinsen 74f8050844 Major cleanup of the latest ghostpad changes. Fixed everything that broke, correctly. Someone will want to go updat...
Original commit message from CVS:
Major cleanup of the latest ghostpad changes.  Fixed everything that
broke, correctly.  Someone will want to go update the API doc templates.
2001-01-19 09:37:32 +00:00
Erik Walthinsen 5ed8c467bf more cothreads cleanup, and first pass at ARM code
Original commit message from CVS:
more cothreads cleanup, and first pass at ARM code
2001-01-19 09:14:42 +00:00
Erik Walthinsen 284014fed1 ALPHA COTHREADS WORK! Worked around a nasty stack issue that probably can't be solved anyway. Tomorrow the UDB buil...
Original commit message from CVS:
ALPHA COTHREADS WORK!  Worked around a nasty stack issue that probably
can't be solved anyway.  Tomorrow the UDB build will commence, and let the
best guess win!
2001-01-19 07:48:43 +00:00
Erik Walthinsen c31f9a570c First pass at updating to new ghostpad system. The objects are in place,
Original commit message from CVS:
First pass at updating to new ghostpad system.  The objects are in place,
I now need to go and get all the Bin end of things worked out.  Testing
should be fairly easy, at least for verification.

Everything I've tried so far works with no changes, with is amazing.
That's just cool.  Once again we rewrite an entire subsystem, and nothing
else notices anything but the new features ;-)
2001-01-19 02:23:35 +00:00
Wim Taymans e40880a90e And here they are....
Original commit message from CVS:
And here they are....
2001-01-19 00:02:53 +00:00
Wim Taymans 520fbbee75 Moved queue and typefind elements to the core since they are referenced by name.
Original commit message from CVS:
Moved queue and typefind elements to the core since they are referenced
by name.
2001-01-19 00:01:42 +00:00
Wim Taymans 90f82b6840 Added mthodes to request an element to create pads: gst_element_request_pad*
Original commit message from CVS:
Added mthodes to request an element to create pads: gst_element_request_pad*
This can be used to construct a tee and a muxer/mixer/aggregator element.
Moved the tee element to elements/ because it can now be handled with the
new pad request features.
The padfactory also has some changes: a pad can now be of presence REQUEST,
which means that the pad can be requested from this plugin (doh).
2001-01-18 23:46:15 +00:00
Richard Boulton 41ebd85275 Fixes to work with libxml2.
Original commit message from CVS:
Fixes to work with libxml2.
Also improved a couple of debugging messagse.
2001-01-18 11:16:53 +00:00
Erik Walthinsen fb871eec23 Updates to cothreads code, including non-working alpha. Changed things a bit, including PPC. Not having a PPC machi...
Original commit message from CVS:
Updates to cothreads code, including non-working alpha.  Changed things a
bit, including PPC.  Not having a PPC machine, I need someone to test
these changes and report back whether they worked or not.
2001-01-18 08:54:25 +00:00
Wim Taymans f5fb79c4ec Fixed the state change code in gstelement that broke with the conversion of the states to a bitfield.
Original commit message from CVS:
Fixed the state change code in gstelement that broke with the conversion
of the states to a bitfield.
2001-01-15 19:25:26 +00:00
Richard Boulton a4e3d04aeb Adding nasty hack to rules to generate cothreads.{o,lo}, to get dependencies right. Rules copied from automake, and ...
Original commit message from CVS:
Adding nasty hack to rules to generate cothreads.{o,lo}, to get dependencies
right.  Rules copied from automake, and therefore a bit dependent on automake
keeping doing dependency things the same kind of way, but it should work as
long as automake puts dependencies into .deps/*.P
2001-01-14 22:24:28 +00:00
Erik Walthinsen 9ca8248cc2 Massive build fixup. Will send message to -devel list later with details on the changes and what they mean for Makef...
Original commit message from CVS:
Massive build fixup.  Will send message to -devel list later with details
on the changes and what they mean for Makefile.am writers.  Check
docs/random/omega/build/TODO for a list of things that I had to make sure
of.

NOTE: this requires a complete rebuild of all plugins, since I also
changed the STATE enum to a bitfield instead of sequential numbers.
2001-01-14 21:55:41 +00:00
Wim Taymans a72f9832d1 Change MAP_ANONYMOUS to MAP_ANON in the mmap for BSD compatibility
Original commit message from CVS:
Change MAP_ANONYMOUS to MAP_ANON in the mmap for BSD compatibility
2001-01-14 14:57:56 +00:00
Wim Taymans 73ae4b1bce Added an extra signal_cond to queue to make sure that the waiting thread is woken up. Can somebody with queue problem...
Original commit message from CVS:
Added an extra signal_cond to queue to make sure that the waiting thread
is woken up. Can somebody with queue problems verifify that this does
improve the situation a bit. I'm suspecting that something else is going
on, like a pthreads bug or something.
Small updates to the fake elements.
2001-01-14 14:43:57 +00:00
Wim Taymans 22c9d0f1a6 include parser.h instead of gnome-xml/parser.h untill xml-config is fixed...
Original commit message from CVS:
include parser.h instead of gnome-xml/parser.h untill xml-config is
fixed...
2001-01-13 13:51:08 +00:00
Erik Walthinsen 558e9f4308 renamed private to element_private, to make obvious its usage restrictions
Original commit message from CVS:
renamed private to element_private, to make obvious its usage restrictions
2001-01-11 22:09:29 +00:00
Erik Walthinsen 60daf21ed4 added gpointer private to pads, so elements can store ints or pointers for their own use
Original commit message from CVS:
added gpointer private to pads, so elements can store ints or pointers for their own use
2001-01-11 22:03:01 +00:00
Erik Walthinsen 72c7d3527f removed some spare newlines
Original commit message from CVS:
removed some spare newlines
2001-01-11 00:33:51 +00:00
Erik Walthinsen 5e1c88675d minor docs fix
Original commit message from CVS:
minor docs fix
2001-01-10 09:15:00 +00:00
Erik Walthinsen d2b2f9e322 fixed a leak
Original commit message from CVS:
fixed a leak
2001-01-09 04:36:51 +00:00
Wim Taymans 2a4a536fee Manual updates. fixes to gstxml.c gst_xml_get_element was broken
Original commit message from CVS:
Manual updates.
fixes to gstxml.c gst_xml_get_element was broken
2001-01-08 22:08:40 +00:00
Richard Boulton 7291b0f7e8 Correct typo in comment, and make another comment more helpful.
Original commit message from CVS:
Correct typo in comment, and make another comment more helpful.
2001-01-08 22:04:52 +00:00
Wim Taymans 5193d34848 Handle the tee element like bin, thread, pipeline, so that it can be used in gstreamer-inspect and gstreamer-launch...
Original commit message from CVS:
Handle the tee element like bin, thread, pipeline, so that it can be used
in gstreamer-inspect and gstreamer-launch...
2001-01-07 18:36:30 +00:00
Richard Boulton e89f87b6b4 gstreamer-register will now never cause the
Original commit message from CVS:
gstreamer-register will now never cause the
** WARNING **: gstplugin: registry needs rebuild
warning to appear - sets a hidden global in gstplugin.c to turn the
warning off.
Fix a warning in gst/cothreads.c (function was declared extern, defined
static)
2001-01-07 15:20:49 +00:00
Wim Taymans ee7ae65e60 Greatly simplyfied queue locking by only using the elements mutex. This should fix the locking problems we had...
Original commit message from CVS:
Greatly simplyfied queue locking by only using the elements mutex. This
should fix the locking problems we had...
2001-01-07 14:49:23 +00:00
Erik Walthinsen e33b2e5908 more leak fixes
Original commit message from CVS:
more leak fixes
2001-01-07 07:45:54 +00:00