platform/upstream/gstreamer.git
15 years agogst/gstregistrybinary.c: Oh my, studip, stupid me. Remove double stat() call.
Stefan Kost [Fri, 31 Oct 2008 15:54:44 +0000 (15:54 +0000)]
gst/gstregistrybinary.c: Oh my, studip, stupid me. Remove double stat() call.

Original commit message from CVS:
* gst/gstregistrybinary.c:
Oh my, studip, stupid me. Remove double stat() call.

15 years agogst/gstpreset.c: Use g_unlink instead of unlink.
Stefan Kost [Fri, 31 Oct 2008 14:24:49 +0000 (14:24 +0000)]
gst/gstpreset.c: Use g_unlink instead of unlink.

Original commit message from CVS:
* gst/gstpreset.c:
Use g_unlink instead of unlink.
* gst/gststructure.c:
Use glib type.
* gst/gstutils.c:
Add a FIXME:.
* gst/gsttaglist.c:
* gst/gsttypefind.c:
* gst/gstvalue.c:
Formatting & whitespaces.

15 years agoplugins/elements/gstidentity.c: Doc typo. Use return value of parent_class->event.
Stefan Kost [Fri, 31 Oct 2008 08:53:27 +0000 (08:53 +0000)]
plugins/elements/gstidentity.c: Doc typo. Use return value of parent_class->event.

Original commit message from CVS:
* plugins/elements/gstidentity.c:
Doc typo. Use return value of parent_class->event.
* plugins/elements/gsttypefindelement.c:
Chain up at the end for consistency.

15 years agodocs/: Change to xinclude based build - its faster and easier to maintain.
Stefan Kost [Thu, 30 Oct 2008 15:29:51 +0000 (15:29 +0000)]
docs/: Change to xinclude based build - its faster and easier to maintain.

Original commit message from CVS:
* docs/Makefile.am:
* docs/gst/gstreamer-docs.sgml:
* docs/gst/gstreamer-sections.txt:
* docs/gst/running.xml:
* docs/libs/gstreamer-libs-docs.sgml:
Change to xinclude based build - its faster and easier to maintain.

15 years agogst/: Use g_unlink() as none of these are directories.
Stefan Kost [Thu, 30 Oct 2008 14:15:14 +0000 (14:15 +0000)]
gst/: Use g_unlink() as none of these are directories.

Original commit message from CVS:
* gst/gstregistrybinary.c:
* gst/gstregistryxml.c:
Use g_unlink() as none of these are directories.

15 years agogst/gstpipeline.c: Some more comments.
Wim Taymans [Wed, 29 Oct 2008 17:04:50 +0000 (17:04 +0000)]
gst/gstpipeline.c: Some more comments.

Original commit message from CVS:
* gst/gstpipeline.c: (gst_pipeline_provide_clock_func):
Some more comments.

15 years agolibs/gst/base/gstbasetransform.c: If we have a fixate function, call it even if we...
Wim Taymans [Mon, 27 Oct 2008 15:02:48 +0000 (15:02 +0000)]
libs/gst/base/gstbasetransform.c: If we have a fixate function, call it even if we already have fixed caps because th...

Original commit message from CVS:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_find_transform), (gst_base_transform_getrange):
If we have a fixate function, call it even if we already have fixed caps
because the subclass might add some caps. Makes audioconvert add a
default channel layout.

15 years agolibs/gst/base/gstbasetransform.c: Clear the output buffer variable.
Wim Taymans [Fri, 24 Oct 2008 09:41:19 +0000 (09:41 +0000)]
libs/gst/base/gstbasetransform.c: Clear the output buffer variable.

Original commit message from CVS:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_prepare_output_buffer),
(gst_base_transform_getrange):
Clear the output buffer variable.
Cleanups to the error path in the getrange function.
Fixes #557649.

15 years agoplugins/elements/: Use gst_buffer_try_new_and_alloc() and handle errors instead of...
Sebastian Dröge [Thu, 23 Oct 2008 12:52:58 +0000 (12:52 +0000)]
plugins/elements/: Use gst_buffer_try_new_and_alloc() and handle errors instead of using gst_buffer_new_and_alloc() w...

Original commit message from CVS:
* plugins/elements/gstfdsrc.c: (gst_fd_src_create):
* plugins/elements/gstfilesrc.c: (gst_file_src_create_read):
Use gst_buffer_try_new_and_alloc() and handle errors instead of
using gst_buffer_new_and_alloc() which aborts if the buffer couldn't
be allocated.

15 years agogst/gstsegment.c: Set the last_stop to a more meaningful position when configuring...
Wim Taymans [Thu, 23 Oct 2008 09:49:07 +0000 (09:49 +0000)]
gst/gstsegment.c: Set the last_stop to a more meaningful position when configuring the segment. ie. the start/stop of...

Original commit message from CVS:
* gst/gstsegment.c: (gst_segment_set_newsegment_full):
Set the last_stop to a more meaningful position when configuring the
segment. ie. the start/stop of the segment or clipped against the
updated segment boundaries.
* tests/check/gst/gstsegment.c: (GST_START_TEST):
Add some unit tests for the last_stop.

15 years agolibs/gst/base/gstbytereader.c: Use GST_(READ|WRITE)_(FLOAT|DOUBLE)_(LE|BE) instead...
Sebastian Dröge [Thu, 23 Oct 2008 07:11:54 +0000 (07:11 +0000)]
libs/gst/base/gstbytereader.c: Use GST_(READ|WRITE)_(FLOAT|DOUBLE)_(LE|BE) instead of our own copies of them.

Original commit message from CVS:
* libs/gst/base/gstbytereader.c:
Use GST_(READ|WRITE)_(FLOAT|DOUBLE)_(LE|BE) instead of our own
copies of them.

15 years agoAPI: Move float endianness conversion macros from libgstfloatcast to core as it's...
Sebastian Dröge [Thu, 23 Oct 2008 07:09:21 +0000 (07:09 +0000)]
API: Move float endianness conversion macros from libgstfloatcast to core as it's useful in general, even in core. Fi...

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstutils.h:
API: Move float endianness conversion macros from libgstfloatcast
to core as it's useful in general, even in core. Fixes bug #555196.
This adds GDOUBLE_FROM_BE, GDOUBLE_FROM_LE, GDOUBLE_TO_BE,
GDOUBLE_TO_LE, GDOUBLE_SWAP_LE_BE, GFLOAT_FROM_BE, GFLOAT_FROM_LE,
GFLOAT_TO_BE, GFLOAT_TO_LE, GFLOAT_SWAP_LE_BE.
Also add GST_READ_ and GST_WRITE_ macros for floats and doubles:
GST_READ_FLOAT_LE, GST_READ_FLOAT_BE, GST_READ_DOUBLE_LE,
GST_READ_DOUBLE_BE, GST_WRITE_FLOAT_LE, GST_WRITE_FLOAT_BE,
GST_WRITE_DOUBLE_LE, GST_WRITE_DOUBLE_BE.

15 years agoAPI: Add gst_byte_reader_get_data and gst_byte_reader_peek_data to get a pointer...
Sebastian Dröge [Wed, 22 Oct 2008 14:47:04 +0000 (14:47 +0000)]
API: Add gst_byte_reader_get_data and gst_byte_reader_peek_data to get a pointer to the data at the current position ...

Original commit message from CVS:
* docs/libs/gstreamer-libs-sections.txt:
* libs/gst/base/gstbytereader.c: (gst_byte_reader_get_data),
(gst_byte_reader_peek_data):
* libs/gst/base/gstbytereader.h:
* win32/common/libgstbase.def:
API: Add gst_byte_reader_get_data and gst_byte_reader_peek_data
to get a pointer to the data at the current position and have
a guaranteed size.

15 years agoconfigure.ac: Fix a bug in the output of the configure script summary when --gst...
Jan Schmidt [Wed, 22 Oct 2008 14:25:16 +0000 (14:25 +0000)]
configure.ac: Fix a bug in the output of the configure script summary when --gst-disable-registry is supplied

Original commit message from CVS:
* configure.ac:
Fix a bug in the output of the configure script summary
when --gst-disable-registry is supplied

15 years agolibs/gst/base/: Fix the names of 2 functions in the docs strings.
Jan Schmidt [Wed, 22 Oct 2008 13:47:20 +0000 (13:47 +0000)]
libs/gst/base/: Fix the names of 2 functions in the docs strings.

Original commit message from CVS:
* libs/gst/base/gstbitreader.c:
* libs/gst/base/gstbytereader.c:
Fix the names of 2 functions in the docs strings.

15 years agolibs/gst/base/gstbasetransform.c: Protect sink_alloc caps with the sinkpad lock to...
Wim Taymans [Tue, 21 Oct 2008 16:30:41 +0000 (16:30 +0000)]
libs/gst/base/gstbasetransform.c: Protect sink_alloc caps with the sinkpad lock to avoid nasty caps refcount problems...

Original commit message from CVS:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_prepare_output_buffer),
(gst_base_transform_buffer_alloc), (gst_base_transform_suggest):
Protect sink_alloc caps with the sinkpad lock to avoid nasty caps
refcount problems as seen in banshee and maybe also in farsight2.
Remove atomic int now that we need to take the lock anyways.

15 years agolibs/gst/base/gstbasesink.c: Implement more seeking in pull mode.
Wim Taymans [Mon, 20 Oct 2008 15:18:14 +0000 (15:18 +0000)]
libs/gst/base/gstbasesink.c: Implement more seeking in pull mode.

Original commit message from CVS:
* libs/gst/base/gstbasesink.c: (gst_base_sink_default_do_seek),
(gst_base_sink_default_prepare_seek_segment),
(gst_base_sink_perform_seek), (gst_base_sink_get_position_last),
(gst_base_sink_get_position_paused), (gst_base_sink_get_position),
(gst_base_sink_query):
Implement more seeking in pull mode.
Use pad convert functions to convert position to the requested format.
Fix position/duration reporting in pull mode.
Implement position and duration reporting in other formats than time.
* libs/gst/base/gstbasesink.h:
Add member to keep track of when the segment is playing.

15 years agogst/gstpad.c: When we use gst_pad_alloc_buffer() without wanting to set the caps...
Wim Taymans [Mon, 20 Oct 2008 13:32:07 +0000 (13:32 +0000)]
gst/gstpad.c: When we use gst_pad_alloc_buffer() without wanting to set the caps we also don't need to check if the c...

Original commit message from CVS:
* gst/gstpad.c: (gst_pad_configure_src):
When we use gst_pad_alloc_buffer() without wanting to set the caps we
also don't need to check if the caps are compatible because the caller
presumably is going to perform its own custom checks. Fixes some cases
where basetransform elements would error out when it was not needed.

15 years agolibs/gst/base/gstbasesrc.c: Update comment.
Wim Taymans [Mon, 20 Oct 2008 13:29:06 +0000 (13:29 +0000)]
libs/gst/base/gstbasesrc.c: Update comment.

Original commit message from CVS:
* libs/gst/base/gstbasesrc.c: (gst_base_src_perform_seek):
Update comment.
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_handle_buffer),
(gst_base_transform_reconfigure):
Add some debug info.
* win32/common/libgstbase.def:
Add new method.

15 years agolibs/gst/base/gstbasesrc.c: (gst_base_src_default_do_seek);
Stefan Kost [Sun, 19 Oct 2008 19:57:25 +0000 (19:57 +0000)]
libs/gst/base/gstbasesrc.c: (gst_base_src_default_do_seek);

Original commit message from CVS:
* libs/gst/base/gstbasesrc.c: (gst_base_src_default_do_seek);
Remove duplicated assignment and log a message in failure case.

15 years agotests/examples/helloworld/helloworld.c: Fix copy'n'paste bug in hello world example...
Dig Ge [Sun, 19 Oct 2008 10:13:39 +0000 (10:13 +0000)]
tests/examples/helloworld/helloworld.c: Fix copy'n'paste bug in hello world example (#556900).

Original commit message from CVS:
Patch by: Dig Ge <dig.ge.cn at gmail com>
* tests/examples/helloworld/helloworld.c: (main):
Fix copy'n'paste bug in hello world example (#556900).

15 years agolibs/gst/base/gstbasesink.c: Query the total number of bytes when activating the...
Wim Taymans [Fri, 17 Oct 2008 13:27:59 +0000 (13:27 +0000)]
libs/gst/base/gstbasesink.c: Query the total number of bytes when activating the pad in pull mode.

Original commit message from CVS:
* libs/gst/base/gstbasesink.c: (gst_base_sink_pad_activate_pull),
(gst_base_sink_query):
Query the total number of bytes when activating the pad in pull mode.
Implement duration query in pull mode by using the installed pad convert
function to convert from bytes to the requested format.

15 years agoAdd method to commit the state in subclasses.
Wim Taymans [Thu, 16 Oct 2008 14:09:18 +0000 (14:09 +0000)]
Add method to commit the state in subclasses.

Original commit message from CVS:
* docs/libs/gstreamer-libs-sections.txt:
* libs/gst/base/gstbasesink.c: (gst_base_sink_do_preroll),
(gst_base_sink_flush_start), (gst_base_sink_flush_stop),
(gst_base_sink_event), (gst_base_sink_perform_seek),
(gst_base_sink_loop), (gst_base_sink_pad_activate_pull),
(gst_base_sink_send_event), (gst_base_sink_change_state):
* libs/gst/base/gstbasesink.h:
Add method to commit the state in subclasses.
Refactor the flush_start and flush_stop code because we need it for
flushing while seeking too.
Implement the beginnings of seeking in pull mode.
Use the segment last_stop field for the pulling offset.
Fix the pause method in pull mode.
Configure the segment to BYTES for pull mode.
API: GstBaseSink::gst_base_sink_do_preroll()

15 years agolibs/gst/base/gstbasesrc.c: Update some docs.
Wim Taymans [Thu, 16 Oct 2008 13:56:52 +0000 (13:56 +0000)]
libs/gst/base/gstbasesrc.c: Update some docs.

Original commit message from CVS:
* libs/gst/base/gstbasesrc.c: (gst_base_src_class_init):
Update some docs.

15 years agogst/gstquark.c: Fix printf format warning.
Tim-Philipp Müller [Tue, 14 Oct 2008 17:10:43 +0000 (17:10 +0000)]
gst/gstquark.c: Fix printf format warning.

Original commit message from CVS:
* gst/gstquark.c: (_priv_gst_quarks_initialize):
Fix printf format warning.

15 years agoplugins/elements/gsttee.c: Fix flow aggregation of tee. Error out immediately for...
Sebastian Dröge [Tue, 14 Oct 2008 12:34:56 +0000 (12:34 +0000)]
plugins/elements/gsttee.c: Fix flow aggregation of tee. Error out immediately for all flow returns except OK and NOT_...

Original commit message from CVS:
* plugins/elements/gsttee.c: (gst_tee_handle_buffer):
Fix flow aggregation of tee. Error out immediately for all flow returns
except OK and NOT_LINKED, return NOT_LINKED if all pads are not linked
and return OK if at least one pad is linked.
Before we errored out on "fatal" flow returns (i.e. not for WRONG_STATE)
and otherwise returned the flow return of the last pad, which is wrong.
* tests/check/elements/tee.c: (_fake_chain), (_fake_chain_error),
(GST_START_TEST), (tee_suite):
Add unit tests for the flow aggregation.

15 years agodocs/design/part-TODO.txt: Remove item from the todo list because it was fixed with...
Wim Taymans [Mon, 13 Oct 2008 17:19:25 +0000 (17:19 +0000)]
docs/design/part-TODO.txt: Remove item from the todo list because it was fixed with the latency state change rewrites.

Original commit message from CVS:
* docs/design/part-TODO.txt:
Remove item from the todo list because it was fixed with the latency
state change rewrites.
* docs/design/part-seeking.txt:
* docs/design/part-segments.txt:
Update some docs.
* gst/gstevent.c: (gst_event_new_new_segment_full),
(gst_event_parse_new_segment_full), (gst_event_new_buffer_size),
(gst_event_parse_buffer_size), (gst_event_new_qos),
(gst_event_parse_qos), (gst_event_new_seek),
(gst_event_parse_seek), (gst_event_new_latency),
(gst_event_parse_latency):
Use quarks to construct and parse events.
* gst/gstquark.c: (_priv_gst_quarks_initialize):
* gst/gstquark.h:
Add some more quarks to the table.
Emit a warning when the quark tables are not in sync.
* tests/check/gst/gstbus.c: (GST_START_TEST):
Add an assert.

15 years agoplugins/: Don't install static libs for plugins. Fixes #550851 for core.
Stefan Kost [Mon, 13 Oct 2008 16:47:51 +0000 (16:47 +0000)]
plugins/: Don't install static libs for plugins. Fixes #550851 for core.

Original commit message from CVS:
* plugins/elements/Makefile.am:
* plugins/indexers/Makefile.am:
Don't install static libs for plugins. Fixes #550851 for core.

15 years agogst/gstbus.c: Fix deadlock, g_source_get_id() cannot be called in finalize.
Wim Taymans [Mon, 13 Oct 2008 10:50:17 +0000 (10:50 +0000)]
gst/gstbus.c: Fix deadlock, g_source_get_id() cannot be called in finalize.

Original commit message from CVS:
* gst/gstbus.c: (gst_bus_source_finalize),
(gst_bus_add_watch_full_unlocked), (gst_bus_add_watch_full),
(gst_bus_enable_sync_message_emission),
(gst_bus_disable_sync_message_emission),
(gst_bus_add_signal_watch_full), (gst_bus_remove_signal_watch):
Fix deadlock, g_source_get_id() cannot be called in finalize.
Keep track of the watch source by keeping a pointer to the source object
instead.
Use the bus lock to protect access to the pointer to the current
watch source.

15 years agogst/gstbus.c: Only allow one bus watch to be set at a time. This is necessary because...
Olivier Crete [Mon, 13 Oct 2008 09:22:22 +0000 (09:22 +0000)]
gst/gstbus.c: Only allow one bus watch to be set at a time. This is necessary because the dispatcher pops the message...

Original commit message from CVS:
Base on Patch by: Olivier Crete <tester at tester dot ca>
* gst/gstbus.c: (gst_bus_source_finalize),
(gst_bus_add_watch_full), (gst_bus_add_signal_watch_full):
Only allow one bus watch to be set at a time. This is necessary
because the dispatcher pops the message from the bus and the second
watcher will then get NULL or the next message (and the first won't
get this next message then, etc). If more than one "watcher" is
required signal watches should be used. Fixes bug #526044.

15 years agotools/gst-launch.c: Change the printing of the 'buffering...' output to avoid putting...
Jan Schmidt [Sun, 12 Oct 2008 22:16:00 +0000 (22:16 +0000)]
tools/gst-launch.c: Change the printing of the 'buffering...' output to avoid putting a \r in a translateable string ...

Original commit message from CVS:
* tools/gst-launch.c:
Change the printing of the 'buffering...' output to avoid putting
a \r in a translateable string (flagged by the TP).

15 years agogst/gstxml.c: Clarify that the save_thyself() and restore_thyself() virtual functions...
Sebastian Dröge [Fri, 10 Oct 2008 15:38:06 +0000 (15:38 +0000)]
gst/gstxml.c: Clarify that the save_thyself() and restore_thyself() virtual functions of GstObject need to be overrid...

Original commit message from CVS:
* gst/gstxml.c:
Clarify that the save_thyself() and restore_thyself() virtual
functions of GstObject need to be overriden, not
gst_object_(save|restore)_thyself() which is impossible.
Fixes bug #555700.

15 years agogst/gstpad.c: Revert a patch from 21 months ago that broke caps negotiation in pull...
Wim Taymans [Fri, 10 Oct 2008 15:27:37 +0000 (15:27 +0000)]
gst/gstpad.c: Revert a patch from 21 months ago that broke caps negotiation in pull mode. Basically, having a buffer ...

Original commit message from CVS:
* gst/gstpad.c: (gst_pad_get_range), (gst_pad_pull_range):
Revert a patch from 21 months ago that broke caps negotiation in pull
mode. Basically, having a buffer pass over a pad will trigger the
setcaps function when caps change, just like in push mode.

15 years agodocs/design/part-negotiation.txt: Update the docs some more.
Wim Taymans [Fri, 10 Oct 2008 15:12:11 +0000 (15:12 +0000)]
docs/design/part-negotiation.txt: Update the docs some more.

Original commit message from CVS:
* docs/design/part-negotiation.txt:
Update the docs some more.
* libs/gst/base/gsttypefindhelper.c: (helper_find_peek):
If we pull a buffer with non-trivial caps, suggest those caps with the
max probability.

15 years agodocs/design/part-TODO.txt: Add another limitation of pad-blocking with segment seeks...
Edward Hervey [Fri, 10 Oct 2008 14:31:03 +0000 (14:31 +0000)]
docs/design/part-TODO.txt: Add another limitation of pad-blocking with segment seeks not pushing

Original commit message from CVS:
* docs/design/part-TODO.txt:
Add another limitation of pad-blocking with segment seeks not pushing
EOS events.

15 years agowin32/common/: Add new symbols to the win32 defs files
Jan Schmidt [Fri, 10 Oct 2008 13:24:13 +0000 (13:24 +0000)]
win32/common/: Add new symbols to the win32 defs files

Original commit message from CVS:
* win32/common/libgstbase.def:
* win32/common/libgstreamer.def:
Add new symbols to the win32 defs files

15 years agogst/gstbin.c: The message src can be NULL, don't try to print the object names in...
Wim Taymans [Fri, 10 Oct 2008 10:38:12 +0000 (10:38 +0000)]
gst/gstbin.c: The message src can be NULL, don't try to print the object names in that case.

Original commit message from CVS:
* gst/gstbin.c: (gst_bin_remove_func), (update_degree),
(gst_bin_handle_message_func):
The message src can be NULL, don't try to print the object names in that
case.
* libs/gst/base/gstbasesink.c: (gst_base_sink_pad_activate):
Add some more debug info.
* tests/check/pipelines/simple-launch-lines.c: (run_pipeline),
(GST_START_TEST):
Add some debug.
Fix the test, pull based sinks go ASYNC to PAUSED, just like other
scheduling modes.

15 years agodocs/design/part-negotiation.txt: Small doc update.
Wim Taymans [Fri, 10 Oct 2008 10:01:36 +0000 (10:01 +0000)]
docs/design/part-negotiation.txt: Small doc update.

Original commit message from CVS:
* docs/design/part-negotiation.txt:
Small doc update.
* docs/libs/gstreamer-libs-sections.txt:
* libs/gst/base/gstbasesink.c: (gst_base_sink_class_init),
(gst_base_sink_pad_getcaps), (gst_base_sink_pad_setcaps),
(gst_base_sink_init), (gst_base_sink_set_blocksize),
(gst_base_sink_get_blocksize), (gst_base_sink_set_property),
(gst_base_sink_get_property), (gst_base_sink_needs_preroll),
(gst_base_sink_loop), (gst_base_sink_pad_activate),
(gst_base_sink_negotiate_pull), (gst_base_sink_pad_activate_pull),
(gst_base_sink_change_state):
* libs/gst/base/gstbasesink.h:
Add blocksize property and methods to control the amount of data
to pull.
Negotiate first before activating upstream in pull mode so that they can
negotiate themselves.
When we operate in pull mode, we only accept the caps that we
negotiated.
Make the sink go ASYNC to PAUSED, like all other sinks.
API: GstBaseSink::gst_base_sink_set_blocksize()
API: GstBaseSink::gst_base_sink_get_blocksize()
API: GstBaseSink::blocksize
* libs/gst/base/gstbasesrc.c: (gst_base_src_wait_playing),
(gst_base_src_set_live), (gst_base_src_is_live),
(gst_base_src_set_format), (gst_base_src_query_latency),
(gst_base_src_set_blocksize), (gst_base_src_get_blocksize),
(gst_base_src_set_do_timestamp), (gst_base_src_get_do_timestamp),
(gst_base_src_set_property), (gst_base_src_get_property):
* libs/gst/base/gstbasesrc.h:
Add typechecking in public API functions.
Add methods to control the blocksize in subclasses.
API: GstBaseSrc::gst_base_src_set_blocksize()
API: GstBaseSrc::gst_base_src_get_blocksize()

15 years agotests/check/gst/gstutils.c: We now see 3 events go through our pad, since basesink...
Edward Hervey [Fri, 10 Oct 2008 09:11:10 +0000 (09:11 +0000)]
tests/check/gst/gstutils.c: We now see 3 events go through our pad, since basesink now sends upstream latency events.

Original commit message from CVS:
* tests/check/gst/gstutils.c: (probe_do_nothing), (data_probe),
(buffer_probe), (event_probe), (GST_START_TEST):
We now see 3 events go through our pad, since basesink now sends
upstream latency events.

15 years agogst/gstpipeline.c: Release the object lock before trying to flush the bus.
Wim Taymans [Wed, 8 Oct 2008 15:21:12 +0000 (15:21 +0000)]
gst/gstpipeline.c: Release the object lock before trying to flush the bus.

Original commit message from CVS:
* gst/gstpipeline.c: (gst_pipeline_change_state):
Release the object lock before trying to flush the bus.

15 years agolibs/gst/base/gstbasesink.c: Forward LATENCY events upstreams so that elements know...
Wim Taymans [Wed, 8 Oct 2008 14:21:13 +0000 (14:21 +0000)]
libs/gst/base/gstbasesink.c: Forward LATENCY events upstreams so that elements know about the total pipeline latency....

Original commit message from CVS:
* libs/gst/base/gstbasesink.c: (gst_base_sink_send_event):
Forward LATENCY events upstreams so that elements know about the total
pipeline latency. Fixes #555307.

15 years agoplugins/elements/gstqueue.c: Allow through queries when we don't know how as otherwis...
Jan Schmidt [Wed, 8 Oct 2008 11:20:17 +0000 (11:20 +0000)]
plugins/elements/gstqueue.c: Allow through queries when we don't know how as otherwise it's not possible to query the...

Original commit message from CVS:
* plugins/elements/gstqueue.c:
Allow through queries when we don't know how
to adjust them (not TIME or BYTES), as otherwise it's
not possible to query the current position in order
to seek in other formats at all.

15 years agochangelog
Andy Wingo [Wed, 8 Oct 2008 11:12:15 +0000 (11:12 +0000)]
changelog

Original commit message from CVS:
changelog

15 years agodocs/gst/gstreamer-sections.txt: Placate doc pendants.
Andy Wingo [Wed, 8 Oct 2008 11:11:25 +0000 (11:11 +0000)]
docs/gst/gstreamer-sections.txt: Placate doc pendants.

Original commit message from CVS:
2008-10-08  Andy Wingo  <wingo@pobox.com>

* docs/gst/gstreamer-sections.txt: Placate doc pendants.

15 years agogst/gstghostpad.*: Unbreak -good build, private is a reserved c++ keyword.
Wim Taymans [Wed, 8 Oct 2008 10:39:24 +0000 (10:39 +0000)]
gst/gstghostpad.*: Unbreak -good build, private is a reserved c++ keyword.

Original commit message from CVS:
* gst/gstghostpad.c:
* gst/gstghostpad.h:
Unbreak -good build, private is a reserved c++ keyword.

15 years agogst/gstghostpad.*: Fix unintended API removal: re-add GST_GHOST_PAD_CAST to the header.
Andy Wingo [Wed, 8 Oct 2008 10:19:11 +0000 (10:19 +0000)]
gst/gstghostpad.*: Fix unintended API removal: re-add GST_GHOST_PAD_CAST to the header.

Original commit message from CVS:
2008-10-08  Andy Wingo  <wingo@pobox.com>

* gst/gstghostpad.h (GST_GHOST_PAD_CAST):
* gst/gstghostpad.c (GST_GHOST_PAD_CAST): Fix unintended API
removal: re-add GST_GHOST_PAD_CAST to the header.

15 years agogst/gstghostpad.h (GstProxyPad, GstProxyPadClass, GstGhostPad)
Andy Wingo [Wed, 8 Oct 2008 10:12:45 +0000 (10:12 +0000)]
gst/gstghostpad.h (GstProxyPad, GstProxyPadClass, GstGhostPad)

Original commit message from CVS:
2008-10-08  Andy Wingo  <wingo@pobox.com>

* gst/gstghostpad.h (GstProxyPad, GstProxyPadClass, GstGhostPad)
(GstGhostPadClass): Publically expose these structures so as to
allow easy subclassing from C. Hide the member data behind a
private opaque data pointer.

* gst/gstghostpad.c: Adapt to store instance data in the type
instance's private data region, not in the public struct.

15 years agogst/gstregistrybinary.c: If we can't get a cache file don't try to save something...
Sebastian Dröge [Wed, 8 Oct 2008 10:07:15 +0000 (10:07 +0000)]
gst/gstregistrybinary.c: If we can't get a cache file don't try to save something to it.

Original commit message from CVS:
* gst/gstregistrybinary.c: (gst_registry_binary_write_cache):
If we can't get a cache file don't try to save something to it.
Dereferencing NULL pointers usually isn't a good idea.

15 years agogst/gstghostpad.c (gst_ghost_pad_construct): If we got a template via g_object_get...
Andy Wingo [Wed, 8 Oct 2008 08:54:55 +0000 (08:54 +0000)]
gst/gstghostpad.c (gst_ghost_pad_construct): If we got a template via g_object_get(), be sure to unref it.

Original commit message from CVS:
2008-10-08  Andy Wingo  <wingo@pobox.com>

* gst/gstghostpad.c (gst_ghost_pad_construct): If we got a
template via g_object_get(), be sure to unref it.

* gst/gstbuffer.h (GST_BUFFER_FREE_FUNC): Fix incorrect doc.

15 years agotests/check/: Add Sparc ABI checks
Jan Schmidt [Tue, 7 Oct 2008 15:12:21 +0000 (15:12 +0000)]
tests/check/: Add Sparc ABI checks

Original commit message from CVS:
* tests/check/Makefile.am:
* tests/check/gst/gstabi.c:
* tests/check/gst/struct_sparc.h:
* tests/check/libs/libsabi.c:
* tests/check/libs/struct_sparc.h:
Add Sparc ABI checks
* tests/check/gst/gstvalue.c: (GST_START_TEST):
Cast signed integer to unsigned to avoid a compiler warning.

15 years agolibs/gst/base/gstbytereader.c: Use new GST_READ_UINT24_(LE|BE) macros.
Sebastian Dröge [Tue, 7 Oct 2008 12:26:40 +0000 (12:26 +0000)]
libs/gst/base/gstbytereader.c: Use new GST_READ_UINT24_(LE|BE) macros.

Original commit message from CVS:
* libs/gst/base/gstbytereader.c: (gst_byte_reader_get_uint24_le),
(gst_byte_reader_get_uint24_be), (gst_byte_reader_get_int24_le),
(gst_byte_reader_get_int24_be), (gst_byte_reader_peek_uint24_le),
(gst_byte_reader_peek_uint24_be), (gst_byte_reader_peek_int24_le),
(gst_byte_reader_peek_int24_be):
Use new GST_READ_UINT24_(LE|BE) macros.

15 years agoAlways use the unaligned variants of GST_READ_UINT* and GST_WRITE_UINT* as it's too...
Sebastian Dröge [Tue, 7 Oct 2008 12:00:49 +0000 (12:00 +0000)]
Always use the unaligned variants of GST_READ_UINT* and GST_WRITE_UINT* as it's too easy to break the ISO C strict al...

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstutils.h:
Always use the unaligned variants of GST_READ_UINT* and GST_WRITE_UINT*
as it's too easy to break the ISO C strict aliasing rules with simple
casts to the corresponding type and this would introduce hard to debug
bugs. Fixes bug #545714.
API: Add GST_READ_UINT24_(LE|BE) and GST_WRITE_UINT24_(LE|BE).

15 years agogst/: Add 'Since' bits to gtk-doc chunks for new API.
Tim-Philipp Müller [Tue, 7 Oct 2008 06:56:11 +0000 (06:56 +0000)]
gst/: Add 'Since' bits to gtk-doc chunks for new API.

Original commit message from CVS:
* gst/gstbuffer.h: (GST_BUFFER_FREE_FUNC):
* gst/gstghostpad.c: (gst_ghost_pad_construct):
Add 'Since' bits to gtk-doc chunks for new API.

15 years agodocs/gst/gstreamer-sections.txt: Fix documentation
Thijs Vermeir [Mon, 6 Oct 2008 21:52:57 +0000 (21:52 +0000)]
docs/gst/gstreamer-sections.txt: Fix documentation

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
Fix documentation

15 years agochangelog, doh
Andy Wingo [Mon, 6 Oct 2008 18:03:58 +0000 (18:03 +0000)]
changelog, doh

Original commit message from CVS:
changelog, doh

15 years agogst/gstbuffer.h (GST_BUFFER_FREE_FUNC): New API, a free function that will be called...
Andy Wingo [Mon, 6 Oct 2008 18:01:42 +0000 (18:01 +0000)]
gst/gstbuffer.h (GST_BUFFER_FREE_FUNC): New API, a free function that will be called on the malloc_data to free it. B...

Original commit message from CVS:
2008-10-06  Andy Wingo  <wingo@pobox.com>

* gst/gstbuffer.h (GST_BUFFER_FREE_FUNC): New API, a free function
that will be called on the malloc_data to free it. Basically a way
to avoid subclassing when all you need is a different free
function, i.e. free() instead of g_free().

* gst/gstbuffer.c (gst_buffer_finalize): Free malloc_data via
calling the free function.
(gst_buffer_init): Initialize the free function to g_free.

15 years agogst/gstghostpad.*: New function, finishes the initialization of ghost pad. Useful...
Andy Wingo [Mon, 6 Oct 2008 17:57:25 +0000 (17:57 +0000)]
gst/gstghostpad.*: New function, finishes the initialization of ghost pad. Useful for language bindings and subclasse...

Original commit message from CVS:
2008-10-06  Andy Wingo  <wingo@pobox.com>

* gst/gstghostpad.h:
* gst/gstghostpad.c (gst_ghost_pad_construct): New function,
finishes the initialization of ghost pad. Useful for language
bindings and subclassers of GstGhostPad. Fixes #539108.
(gst_ghost_pad_new_full): Use the new constructor.

15 years agogst/gstbin.c: Keep track of pads that are being linked/unlinked and resync the state...
Olivier Crete [Mon, 6 Oct 2008 16:15:02 +0000 (16:15 +0000)]
gst/gstbin.c: Keep track of pads that are being linked/unlinked and resync the state changes.

Original commit message from CVS:
Base on Patch by: Olivier Crete <tester at tester dot ca>
* gst/gstbin.c: (gst_bin_init), (gst_bin_add_func),
(gst_bin_remove_func), (update_degree),
(gst_bin_sort_iterator_new), (gst_bin_handle_message_func):
Keep track of pads that are being linked/unlinked and resync the state
changes.
* gst/gstpad.c: (gst_pad_get_direction),
(gst_pad_set_chain_function), (gst_pad_set_getrange_function),
(gst_pad_set_checkgetrange_function), (gst_pad_unlink),
(gst_pad_link_prepare), (gst_pad_link),
(gst_pad_event_default_dispatch), (gst_pad_chain), (gst_pad_push),
(gst_pad_check_pull_range), (gst_pad_get_range),
(gst_pad_pull_range):
Some code cleanups, use macros to check pad direction.
Don't need to take the lock on the pad direction.
Post structure change when pads are linked/unlinked.
Change some checks into _return_if_fail().
* tests/check/gst/gstbin.c:
(test_link_structure_change_state_changed_sync_cb),
(GST_START_TEST), (gst_bin_suite):
Add testcase for pad link/unlinke resync during a state change.
Fixes #510354.

15 years agoImplement STRUCTURE_CHANGED messages. These messages will be used to signal the paren...
Wim Taymans [Mon, 6 Oct 2008 15:31:49 +0000 (15:31 +0000)]
Implement STRUCTURE_CHANGED messages. These messages will be used to signal the parent bin of link/unlink operations ...

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstmessage.c: (gst_message_new_structure_change),
(gst_message_parse_structure_change):
* gst/gstmessage.h:
Implement STRUCTURE_CHANGED messages. These messages will be used to
signal the parent bin of link/unlink operations that could require a
resync when doing a state change. See ##510354.
API: gst_message_new_structure_change()
API: gst_message_parse_structure_change()

15 years agogst/gstquark.*: Add some more quarks for new message. See #510354.
Wim Taymans [Mon, 6 Oct 2008 15:21:14 +0000 (15:21 +0000)]
gst/gstquark.*: Add some more quarks for new message. See #510354.

Original commit message from CVS:
* gst/gstquark.c:
* gst/gstquark.h:
Add some more quarks for new message. See #510354.

15 years agoChangeLog surgery: add API tag
Sebastian Dröge [Mon, 6 Oct 2008 12:57:39 +0000 (12:57 +0000)]
ChangeLog surgery: add API tag

Original commit message from CVS:
ChangeLog surgery: add API tag

15 years agoAdd bit reader and byte reader classes, including documentation and an extensive...
Sebastian Dröge [Mon, 6 Oct 2008 12:41:53 +0000 (12:41 +0000)]
Add bit reader and byte reader classes, including documentation and an extensive unit test suite. Fixes bug #553554.

Original commit message from CVS:
* docs/libs/gstreamer-libs-docs.sgml:
* docs/libs/gstreamer-libs-sections.txt:
* libs/gst/base/Makefile.am:
* libs/gst/base/gstbitreader.c: (gst_bit_reader_new),
(gst_bit_reader_new_from_buffer), (gst_bit_reader_free),
(gst_bit_reader_init), (gst_bit_reader_init_from_buffer),
(gst_bit_reader_set_pos), (gst_bit_reader_get_pos),
(gst_bit_reader_get_remaining), (gst_bit_reader_skip),
(gst_bit_reader_skip_to_byte):
* libs/gst/base/gstbitreader.h:
* libs/gst/base/gstbytereader.c: (GDOUBLE_SWAP_LE_BE),
(GFLOAT_SWAP_LE_BE), (gst_byte_reader_new),
(gst_byte_reader_new_from_buffer), (gst_byte_reader_free),
(gst_byte_reader_init), (gst_byte_reader_init_from_buffer),
(gst_byte_reader_set_pos), (gst_byte_reader_get_pos),
(gst_byte_reader_get_remaining), (gst_byte_reader_skip),
(gst_byte_reader_get_uint8), (gst_byte_reader_get_int8),
(gst_byte_reader_peek_uint8), (gst_byte_reader_peek_int8),
(gst_byte_reader_get_uint24_le), (gst_byte_reader_get_uint24_be),
(gst_byte_reader_get_int24_le), (gst_byte_reader_get_int24_be),
(gst_byte_reader_peek_uint24_le), (gst_byte_reader_peek_uint24_be),
(gst_byte_reader_peek_int24_le), (gst_byte_reader_peek_int24_be):
* libs/gst/base/gstbytereader.h:
* tests/check/Makefile.am:
* tests/check/libs/bitreader.c: (GST_START_TEST),
(gst_bit_reader_suite):
* tests/check/libs/bytereader.c: (GST_START_TEST),
(gst_byte_reader_suite):
Add bit reader and byte reader classes, including documentation
and an extensive unit test suite. Fixes bug #553554.

15 years agolibs/gst/base/gstbasesink.c: Improve position reporting while flushing and other...
Wim Taymans [Mon, 6 Oct 2008 08:58:25 +0000 (08:58 +0000)]
libs/gst/base/gstbasesink.c: Improve position reporting while flushing and other intermediate state changes. Fixes #5...

Original commit message from CVS:
* libs/gst/base/gstbasesink.c: (gst_base_sink_get_position),
(gst_base_sink_query):
Improve position reporting while flushing and other intermediate state
changes. Fixes #553874.

15 years agogst/gstpad.c: Fix small refount leak in caps compatibility check.
Antoine Tremblay [Mon, 6 Oct 2008 08:45:42 +0000 (08:45 +0000)]
gst/gstpad.c: Fix small refount leak in caps compatibility check.

Original commit message from CVS:
Patch by: Antoine Tremblay <hexa00 at gmail dot com>
* gst/gstpad.c: (gst_pad_link_check_compatible_unlocked):
Original patch by : Simon Descaries
Fix small refount leak in caps compatibility check.
Fixes #551676.

15 years agodocs/pwg/advanced-request.xml: Fix 0.8 api usage in example. Fixes #554561
Stefan Kost [Mon, 6 Oct 2008 07:30:57 +0000 (07:30 +0000)]
docs/pwg/advanced-request.xml: Fix 0.8 api usage in example. Fixes #554561

Original commit message from CVS:
* docs/pwg/advanced-request.xml:
Fix 0.8 api usage in example. Fixes #554561
* docs/pwg/appendix-porting.xml:
Change 0.9 to 0.10 here.

15 years agodocs/manual/basics-data.xml: Change "event-event interaction" to "element-element...
Stefan Kost [Mon, 6 Oct 2008 07:13:02 +0000 (07:13 +0000)]
docs/manual/basics-data.xml: Change "event-event interaction" to "element-element interaction".

Original commit message from CVS:
* docs/manual/basics-data.xml:
Change "event-event interaction" to "element-element interaction".
Fixes #552448. Also fix sample code for seeking and do more 0.8->0.10
updates.

15 years agoconfigure.ac: Back to development -> 0.10.21.1
Jan Schmidt [Sun, 5 Oct 2008 10:01:50 +0000 (10:01 +0000)]
configure.ac: Back to development -> 0.10.21.1

Original commit message from CVS:
* configure.ac:
Back to development -> 0.10.21.1

15 years agoRelease 0.10.21 RELEASE-0_10_21
Jan Schmidt [Thu, 2 Oct 2008 23:59:53 +0000 (23:59 +0000)]
Release 0.10.21

Original commit message from CVS:
Release 0.10.21

15 years agoUpdate .po files
Jan Schmidt [Thu, 2 Oct 2008 22:42:18 +0000 (22:42 +0000)]
Update .po files

Original commit message from CVS:
Update .po files

15 years agoconfigure.ac: 0.10.20.4 pre-release
Jan Schmidt [Sun, 28 Sep 2008 22:49:56 +0000 (22:49 +0000)]
configure.ac: 0.10.20.4 pre-release

Original commit message from CVS:
* configure.ac:
0.10.20.4 pre-release

15 years agoFix assertion in basetransform when the subclass chooses not to allocate a buffer...
Jan Schmidt [Sun, 28 Sep 2008 21:19:15 +0000 (21:19 +0000)]
Fix assertion in basetransform when the subclass chooses not to allocate a buffer in prepare_buffer(), and make capsf...

Original commit message from CVS:
* libs/gst/base/gstbasetransform.c:
* plugins/elements/gstcapsfilter.c:
* tests/check/Makefile.am:
* tests/check/elements/.cvsignore:
* tests/check/elements/capsfilter.c:
Fix assertion in basetransform when the subclass chooses not to
allocate a buffer in prepare_buffer(), and make capsfilter error out
cleanly if requested to apply caps that don't completely specify the
buffer. Fixes #551509

15 years agolibs/gst/base/gstbasetransform.c: Take new caps ref because our old one might have...
Wim Taymans [Wed, 24 Sep 2008 15:03:40 +0000 (15:03 +0000)]
libs/gst/base/gstbasetransform.c: Take new caps ref because our old one might have been gone when the subclass perfor...

Original commit message from CVS:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_prepare_output_buffer):
Take new caps ref because our old one might have been gone when the
subclass performs a gst_pad_set_caps() on the srcpad. See #548764.

15 years agoAlso commit ChangeLog
Jan Schmidt [Tue, 16 Sep 2008 15:35:04 +0000 (15:35 +0000)]
Also commit ChangeLog

Original commit message from CVS:
Also commit ChangeLog

15 years agoGah. Commit pre-release info that should have gone in last week already.
Jan Schmidt [Tue, 16 Sep 2008 15:24:04 +0000 (15:24 +0000)]
Gah. Commit pre-release info that should have gone in last week already.

Original commit message from CVS:
Gah. Commit pre-release info that should have gone in last week already.

2008-09-10  Jan Schmidt  <jan.schmidt@sun.com>

* configure.ac:
0.10.20.2 pre-release

* po/LINGUAS:
* po/id.po:
* po/pt_BR.po:

New translations.

15 years agoconfigure.ac: Do not probe availability of check unit test library when cross compili...
Stefan Kost [Mon, 15 Sep 2008 15:18:07 +0000 (15:18 +0000)]
configure.ac: Do not probe availability of check unit test library when cross compiling, as test would not work anywa...

Original commit message from CVS:
* configure.ac:
Do not probe availability of check unit test library when cross
compiling, as test would not work anyway. Also cleanup verbose output
of the check test. Fixes #551952.

15 years agogst/gstelement.c: Avoid leaking the parent ref when we fail changing the state of...
Antoine Tremblay [Sun, 14 Sep 2008 22:01:30 +0000 (22:01 +0000)]
gst/gstelement.c: Avoid leaking the parent ref when we fail changing the state of the element using gst_element_sync_...

Original commit message from CVS:
Based on patch by: Antoine Tremblay <hexa00 at gmail dot com>
* gst/gstelement.c: (gst_element_sync_state_with_parent):
Avoid leaking the parent ref when we fail changing the state of the
element using gst_element_sync_state_with_parent(). Fixes #551978.

15 years agodocs/manual/intro-motivation.xml: Remove some bits that no longer apply, update other...
Tim-Philipp Müller [Thu, 11 Sep 2008 16:56:48 +0000 (16:56 +0000)]
docs/manual/intro-motivation.xml: Remove some bits that no longer apply, update others (#551642).

Original commit message from CVS:
* docs/manual/intro-motivation.xml::
Remove some bits that no longer apply, update others (#551642).

15 years agowin32/common/config.h.in: Add GST_DATADIR, hard-code cpu to x86.
Tim-Philipp Müller [Tue, 9 Sep 2008 18:47:27 +0000 (18:47 +0000)]
win32/common/config.h.in: Add GST_DATADIR, hard-code cpu to x86.

Original commit message from CVS:
* win32/common/config.h.in:
Add GST_DATADIR, hard-code cpu to x86.
* win32/common/libgstreamer.def:
Spaces to tabs.

15 years agogst/gsttaglist.h: Fix Since: markers for new geo tags.
Tim-Philipp Müller [Wed, 3 Sep 2008 05:52:40 +0000 (05:52 +0000)]
gst/gsttaglist.h: Fix Since: markers for new geo tags.

Original commit message from CVS:
* gst/gsttaglist.h:
Fix Since: markers for new geo tags.

15 years agogst/gsttaglist.h: Fix actual tag name define after renaming from altitude to elevation.
Stefan Kost [Tue, 2 Sep 2008 20:00:28 +0000 (20:00 +0000)]
gst/gsttaglist.h: Fix actual tag name define after renaming from altitude to elevation.

Original commit message from CVS:
* gst/gsttaglist.h:
Fix actual tag name define after renaming from altitude to elevation.

15 years agogst/gstpad.c: Add fallback when calling the deprecated function on an element that...
Wim Taymans [Mon, 1 Sep 2008 14:05:45 +0000 (14:05 +0000)]
gst/gstpad.c: Add fallback when calling the deprecated function on an element that implements the new internal_link h...

Original commit message from CVS:
* gst/gstpad.c: (add_unref_pad_to_list),
(gst_pad_get_internal_links_default):
Add fallback when calling the deprecated function on an element that
implements the new internal_link handler.

15 years agoAdd new tags for geo location and clarify purpose of existing location tag. Fixes...
Stefan Kost [Mon, 1 Sep 2008 13:35:32 +0000 (13:35 +0000)]
Add new tags for geo location and clarify purpose of existing location tag. Fixes #481169

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gsttaglist.c:
* gst/gsttaglist.h:
Add new tags for geo location and clarify purpose of existing location
tag. Fixes #481169

15 years agogst/gstpad.c: Use thread-safe internal links iterator. Fixes #549504.
Olivier Crete [Mon, 1 Sep 2008 11:27:45 +0000 (11:27 +0000)]
gst/gstpad.c: Use thread-safe internal links iterator. Fixes #549504.

Original commit message from CVS:
Patch by: Olivier Crete <tester at tester dot ca>
* gst/gstpad.c: (gst_pad_iterate_internal_links_default),
(gst_pad_event_default_dispatch), (gst_pad_dispatcher):
Use thread-safe internal links iterator. Fixes #549504.

15 years agoAdd threadsafe replacement functions for getting internal links of an element. Deprec...
Olivier Crete [Mon, 1 Sep 2008 10:42:04 +0000 (10:42 +0000)]
Add threadsafe replacement functions for getting internal links of an element. Deprecate the old internal links funct...

Original commit message from CVS:
Based on patch by: Olivier Crete <tester at tester dot ca>
* docs/gst/gstreamer-sections.txt:
* win32/common/libgstreamer.def:
* gst/gstpad.c: (gst_pad_init),
(gst_pad_set_iterate_internal_links_function),
(int_link_iter_data_free), (iterate_pad),
(gst_pad_iterate_internal_links_default),
(gst_pad_iterate_internal_links), (gst_pad_get_internal_links):
* gst/gstpad.h:
Add threadsafe replacement functions for getting internal links of an
element. Deprecate the old internal links functions.
API:GstPad::gst_pad_set_iterate_internal_links_function()
API:GstPad::GstPadIterIntLinkFunction
API:GstPad::gst_pad_iterate_internal_links()
API:GstPad::gst_pad_iterate_internal_links_default()
* gst/gstghostpad.c: (gst_proxy_pad_do_iterate_internal_links),
(gst_proxy_pad_init):
Implement threadsafe internal links.
* tests/check/elements/tee.c: (GST_START_TEST), (tee_suite):
Unit test for internal links on tee. See #549504.

15 years agotests/check/Makefile.am: libs/transform1 test requires libs/test_transform.c
Edward Hervey [Sat, 30 Aug 2008 12:57:47 +0000 (12:57 +0000)]
tests/check/Makefile.am: libs/transform1 test requires libs/test_transform.c

Original commit message from CVS:
* tests/check/Makefile.am:
libs/transform1 test requires libs/test_transform.c

15 years agogst/gstpad.c: Die evil deadlock, die !
Edward Hervey [Sat, 30 Aug 2008 12:07:41 +0000 (12:07 +0000)]
gst/gstpad.c: Die evil deadlock, die !

Original commit message from CVS:
* gst/gstpad.c: (gst_pad_get_internal_links_default):
Die evil deadlock, die !

15 years agoFix all leaks due to the bug in gst_pad_template_new() by which it does not steal...
Edward Hervey [Sat, 30 Aug 2008 11:55:59 +0000 (11:55 +0000)]
Fix all leaks due to the bug in gst_pad_template_new() by which it does not steal the refcount of the given caps as s...

Original commit message from CVS:
* gst/gstutils.c: (gst_element_get_compatible_pad):
* tests/check/gst/gstghostpad.c: (GST_START_TEST):
* tests/check/gst/gstpad.c: (name_is_valid), (GST_START_TEST):
Fix all leaks due to the bug in gst_pad_template_new() by which it does
not steal the refcount of the given caps as stated.
REVERT THIS COMMIT ONCE FIXED !
REVERT THIS COMMIT ONCE FIXED !
REVERT THIS COMMIT ONCE FIXED !
REVERT THIS COMMIT ONCE FIXED !
REVERT THIS COMMIT ONCE FIXED !
REVERT THIS COMMIT ONCE FIXED !

15 years agogst/gstiterator.*: After 3 years it's about time to revise the documentation of the...
Wim Taymans [Fri, 29 Aug 2008 17:58:25 +0000 (17:58 +0000)]
gst/gstiterator.*: After 3 years it's about time to revise the documentation of the iterator objects.

Original commit message from CVS:
* gst/gstiterator.c:
* gst/gstiterator.h:
After 3 years it's about time to revise the documentation of the
iterator objects.

15 years agogst/gstpad.c: Make the internal links function less thread-unsafe and add some commen...
Wim Taymans [Fri, 29 Aug 2008 16:10:56 +0000 (16:10 +0000)]
gst/gstpad.c: Make the internal links function less thread-unsafe and add some comments, dunno why.

Original commit message from CVS:
* gst/gstpad.c: (gst_pad_get_internal_links_default):
Make the internal links function less thread-unsafe and add some
comments, dunno why.

15 years agogst/gst_private.h: Include gstinfo.h even if GST_DISABLE_GST_DEBUG is defined. Fixes...
Tim-Philipp Müller [Fri, 29 Aug 2008 14:12:02 +0000 (14:12 +0000)]
gst/gst_private.h: Include gstinfo.h even if GST_DISABLE_GST_DEBUG is defined. Fixes build with --disable-gst-debug.

Original commit message from CVS:
* gst/gst_private.h:
Include gstinfo.h even if GST_DISABLE_GST_DEBUG is defined. Fixes
build with --disable-gst-debug.

15 years agogst/gstpadtemplate.c: Revert last change, since it breaks a few plugins, ffmpeg,...
David Schleef [Fri, 29 Aug 2008 00:34:58 +0000 (00:34 +0000)]
gst/gstpadtemplate.c: Revert last change, since it breaks a few plugins, ffmpeg, alaw, and mulaw.  Code is correct, b...

Original commit message from CVS:
* gst/gstpadtemplate.c: Revert last change, since it breaks
a few plugins, ffmpeg, alaw, and mulaw.  Code is correct,
but shouldn't be enabled until we've released fixed versions
of -good and -ffmpeg.

15 years agogst/gstobject.c: Put the gst_object_get_name() back in.
Stefan Kost [Thu, 28 Aug 2008 20:12:54 +0000 (20:12 +0000)]
gst/gstobject.c: Put the gst_object_get_name() back in.

Original commit message from CVS:
* gst/gstobject.c:
Put the gst_object_get_name() back in.

15 years agogst/gstpadtemplate.c: The old behaviour was that gst_pad_template_new() takes ownersh...
Stefan Kost [Thu, 28 Aug 2008 12:32:19 +0000 (12:32 +0000)]
gst/gstpadtemplate.c: The old behaviour was that gst_pad_template_new() takes ownership of the caps. As we now call g...

Original commit message from CVS:
* gst/gstpadtemplate.c:
The old behaviour was that gst_pad_template_new() takes ownership of
the caps. As we now call g_object_new() which calls g_object_set() and
which copies the caps, we have to unref them to not leak them. Fixes
make valgrid for me.

15 years agogst/gsturi.c: Don't segfault on input like "tel:+1-123-555-1234".
Stefan Kost [Thu, 28 Aug 2008 10:45:04 +0000 (10:45 +0000)]
gst/gsturi.c: Don't segfault on input like "tel:+1-123-555-1234".

Original commit message from CVS:
* gst/gsturi.c:
Don't segfault on input like "tel:+1-123-555-1234".

15 years agogst/gstobject.c: Due to popular request also include ObjectType in gst_object_get_pat...
Stefan Kost [Wed, 27 Aug 2008 07:18:37 +0000 (07:18 +0000)]
gst/gstobject.c: Due to popular request also include ObjectType in gst_object_get_path_string(). Makes gst-launch -v ...

Original commit message from CVS:
* gst/gstobject.c:
Due to popular request also include ObjectType in
gst_object_get_path_string(). Makes gst-launch -v bit more useful.

15 years agogst/gstutils.c: Remove check in gst_pad_query_convert() that src_val must be positive...
David Schleef [Wed, 27 Aug 2008 03:04:23 +0000 (03:04 +0000)]
gst/gstutils.c: Remove check in gst_pad_query_convert() that src_val must be positive, because that's not a requirement.

Original commit message from CVS:
* gst/gstutils.c: Remove check in gst_pad_query_convert() that
src_val must be positive, because that's not a requirement.
This causes problems with converting negative granulepos
values for Dirac.
* gst/gstquery.c: Same, gst_query_new_convert().

15 years agogst/gstutils.c: Remove check in gst_pad_query_convert() that src_val must be positive...
David Schleef [Wed, 27 Aug 2008 02:59:59 +0000 (02:59 +0000)]
gst/gstutils.c: Remove check in gst_pad_query_convert() that src_val must be positive, because that's not a requirement.

Original commit message from CVS:
* gst/gstutils.c: Remove check in gst_pad_query_convert() that
src_val must be positive, because that's not a requirement.
This causes problems with converting negative granulepos
values for Dirac.

15 years agogst/gstclock.c: Add some more debugging to the clock slaving code.
Wim Taymans [Mon, 25 Aug 2008 11:06:34 +0000 (11:06 +0000)]
gst/gstclock.c: Add some more debugging to the clock slaving code.

Original commit message from CVS:
* gst/gstclock.c: (gst_clock_add_observation):
Add some more debugging to the clock slaving code.
* win32/common/libgstbase.def:
Add new basetransform method.

15 years agogst/gstbin.c: Take the (recursive) state lock between getting the locked state of...
Wim Taymans [Mon, 25 Aug 2008 11:00:13 +0000 (11:00 +0000)]
gst/gstbin.c: Take the (recursive) state lock between getting the locked state of an element and changing the element...

Original commit message from CVS:
* gst/gstbin.c: (gst_bin_element_set_state):
Take the (recursive) state lock between getting the locked state of an
element and changing the element state. This allows the application to
lock an element's state and then change its state without races.

15 years agogst/gstbin.c: When an element is in the locked state we still want to update the...
Wim Taymans [Mon, 25 Aug 2008 10:52:47 +0000 (10:52 +0000)]
gst/gstbin.c: When an element is in the locked state we still want to update the base_time of the element.

Original commit message from CVS:
* gst/gstbin.c: (gst_bin_element_set_state):
When an element is in the locked state we still want to update the
base_time of the element.