platform/upstream/gstreamer.git
18 years agolibs/gst/net/: Make stuff compile on windows. Fixes #345295.
Wim Taymans [Tue, 5 Sep 2006 08:35:20 +0000 (08:35 +0000)]
libs/gst/net/: Make stuff compile on windows. Fixes #345295.

Original commit message from CVS:
* libs/gst/net/gstnetclientclock.c: (inet_aton),
(gst_net_client_clock_init), (gst_net_client_clock_finalize),
(gst_net_client_clock_do_select), (gst_net_client_clock_new):
* libs/gst/net/gstnetclientclock.h:
* libs/gst/net/gstnettimepacket.c: (gst_net_time_packet_send):
* libs/gst/net/gstnettimepacket.h:
* libs/gst/net/gstnettimeprovider.c: (inet_aton),
(gst_net_time_provider_init), (gst_net_time_provider_finalize),
(gst_net_time_provider_thread), (gst_net_time_provider_new):
* libs/gst/net/gstnettimeprovider.h:
Make stuff compile on windows. Fixes #345295.

18 years agogst/gst.c: Print better details when child was terminated by signal.
Tim-Philipp Müller [Sun, 3 Sep 2006 11:16:50 +0000 (11:16 +0000)]
gst/gst.c: Print better details when child was terminated by signal.

Original commit message from CVS:
* gst/gst.c: (ensure_current_registry_forking):
Print better details when child was terminated by signal.

18 years agogst/gstregistryxml.c: Print a warning rather than g_assert() if a plugin feature...
Tim-Philipp Müller [Sun, 3 Sep 2006 11:06:52 +0000 (11:06 +0000)]
gst/gstregistryxml.c: Print a warning rather than g_assert() if a plugin feature is a URI handler but returns no prot...

Original commit message from CVS:
* gst/gstregistryxml.c: (gst_registry_xml_save_feature):
Print a warning rather than g_assert() if a plugin feature
is a URI handler but returns no protocols (#353976).

18 years agodocs/random/moving-plugins: Fix two typos.
Stefan Kost [Sat, 2 Sep 2006 19:10:56 +0000 (19:10 +0000)]
docs/random/moving-plugins: Fix two typos.

Original commit message from CVS:
* docs/random/moving-plugins:
Fix two typos.

18 years agodocument process some more
Thomas Vander Stichele [Sat, 2 Sep 2006 19:03:41 +0000 (19:03 +0000)]
document process some more

Original commit message from CVS:
document process some more

18 years agoclarify error message
Thomas Vander Stichele [Sat, 2 Sep 2006 13:40:41 +0000 (13:40 +0000)]
clarify error message

Original commit message from CVS:
clarify error message

18 years agodocument process some more
Thomas Vander Stichele [Sat, 2 Sep 2006 13:36:44 +0000 (13:36 +0000)]
document process some more

Original commit message from CVS:
document process some more

18 years agoChangeLog surgery: fix typo
Tim-Philipp Müller [Fri, 1 Sep 2006 16:03:49 +0000 (16:03 +0000)]
ChangeLog surgery: fix typo

Original commit message from CVS:
ChangeLog surgery: fix typo

18 years agogst/gstinfo.c: Fix locking order, handle NULL function values properly.
Tim-Philipp Müller [Fri, 1 Sep 2006 15:55:20 +0000 (15:55 +0000)]
gst/gstinfo.c: Fix locking order, handle NULL function values properly.

Original commit message from CVS:
* gst/gstinfo.c: (_gst_debug_nameof_funcptr):
Fix locking order, handle NULL function values properly.
* gst/gstinfo.h:
Fix docs.
* gst/gstpad.c: (gst_pad_buffer_alloc_unchecked):
Initialised variable before using it and fix debug statement to
print the address of the function rather than the address of the
variable on the stack holding the address of the function.

18 years agogst/gstghostpad.c: More cleanups.
Wim Taymans [Fri, 1 Sep 2006 10:33:03 +0000 (10:33 +0000)]
gst/gstghostpad.c: More cleanups.

Original commit message from CVS:
* gst/gstghostpad.c: (gst_proxy_pad_do_event),
(gst_proxy_pad_do_bufferalloc), (gst_proxy_pad_do_chain),
(gst_proxy_pad_do_getrange), (gst_proxy_pad_do_checkgetrange),
(gst_proxy_pad_set_target_unlocked), (gst_ghost_pad_parent_set),
(gst_ghost_pad_parent_unset),
(gst_ghost_pad_internal_do_activate_push),
(gst_ghost_pad_internal_do_activate_pull),
(gst_ghost_pad_do_activate_push), (gst_ghost_pad_do_activate_pull),
(gst_ghost_pad_do_link), (gst_ghost_pad_do_unlink),
(gst_ghost_pad_init), (gst_ghost_pad_dispose),
(gst_ghost_pad_new_full), (gst_ghost_pad_new_no_target),
(gst_ghost_pad_new), (gst_ghost_pad_new_from_template),
(gst_ghost_pad_new_no_target_from_template),
(gst_ghost_pad_get_target), (gst_ghost_pad_set_target):
More cleanups.
Avoid needless typechecking in macros.
Since the internal pad is always present and never changes, there is
no need to locking or ref when retrieving it.
Improve debugging a bit.
Handle link errors when setting the target. Fixes #341029.

18 years agodocs/: Fix docs some more.
Wim Taymans [Fri, 1 Sep 2006 10:26:52 +0000 (10:26 +0000)]
docs/: Fix docs some more.

Original commit message from CVS:
* docs/libs/gstreamer-libs-sections.txt:
* docs/plugins/gstreamer-plugins-sections.txt:
Fix docs some more.
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_remove_pad),
(gst_collect_pads_event):
* libs/gst/base/gstcollectpads.h:
Documentation updates.
Free queued buffer when removing a pad.

18 years agogst/gstutils.c: Ensure that we set a capsfilter to NULL if we failed to link it when...
Michael Smith [Thu, 31 Aug 2006 17:13:34 +0000 (17:13 +0000)]
gst/gstutils.c: Ensure that we set a capsfilter to NULL if we failed to link it when doing filtered linking, to avoid...

Original commit message from CVS:
* gst/gstutils.c: (gst_element_link_pads),
(gst_element_link_pads_filtered):
Ensure that we set a capsfilter to NULL if we failed to link it
when doing filtered linking, to avoid criticals.

No need to check for unreffing srcpad, which is explicly NULLed
above (a trivial code cleanup).

18 years agodocs/design/part-gstghostpad.txt: Update ascii art in documentation.
Wim Taymans [Thu, 31 Aug 2006 15:19:44 +0000 (15:19 +0000)]
docs/design/part-gstghostpad.txt: Update ascii art in documentation.

Original commit message from CVS:
* docs/design/part-gstghostpad.txt:
Update ascii art in documentation.
* gst/gstghostpad.c: (gst_proxy_pad_do_internal_link),
(gst_proxy_pad_set_target_unlocked), (gst_proxy_pad_init),
(gst_ghost_pad_parent_set), (gst_ghost_pad_parent_unset),
(gst_ghost_pad_internal_do_activate_push),
(gst_ghost_pad_internal_do_activate_pull),
(gst_ghost_pad_do_activate_push), (gst_ghost_pad_do_activate_pull),
(gst_ghost_pad_do_link), (gst_ghost_pad_do_unlink),
(gst_ghost_pad_dispose), (gst_ghost_pad_new_full),
(gst_ghost_pad_set_target):
Small cleanups and leak fixes.
Remove some checks now that the internal pad is never NULL.
Fix the case where linking pads without a target would create nasty
criticals. Fixes #341029.
Don't assign a GstPadLinkReturn to a gboolean and mess up the return
value of _set_target().
* tests/check/gst/gstghostpad.c: (GST_START_TEST),
(gst_ghost_pad_suite):
Some more tests for creating and linking untargeted ghostpads.

18 years agoRefactored *_new() functions.
Edward Hervey [Thu, 31 Aug 2006 10:59:11 +0000 (10:59 +0000)]
Refactored *_new() functions.

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstghostpad.c: (gst_proxy_pad_do_getcaps),
(gst_proxy_pad_do_setcaps), (gst_proxy_pad_set_target_unlocked),
(gst_proxy_pad_dispose), (gst_ghost_pad_new_full),
(gst_ghost_pad_new_no_target), (gst_ghost_pad_new),
(gst_ghost_pad_new_from_template),
(gst_ghost_pad_new_no_target_from_template):
* gst/gstghostpad.h:
Refactored *_new() functions.
Templates are now used as a g_object_new() parameter.
Use template in _do_getcaps() if we don't have a target.
Small documentation cleanups.
Added two new constructors:
gst_ghost_pad_new_from_template()
gst_ghost_pad_new_no_target_from_template()
* tests/check/gst/gstghostpad.c: (GST_START_TEST),
(gst_ghost_pad_suite):
Added tests for new ghostpad instanciation functions.
API additions: gst_ghost_pad_new_from_template,
gst_ghost_pad_new_no_target_from_template

18 years agodocs/random/ensonic/profiling.txt: Ideas about qos profiling.
Stefan Kost [Wed, 30 Aug 2006 12:28:55 +0000 (12:28 +0000)]
docs/random/ensonic/profiling.txt: Ideas about qos profiling.

Original commit message from CVS:
* docs/random/ensonic/profiling.txt:
Ideas about qos profiling.

18 years agogst/gstcaps.c: Code cleanups.
Wim Taymans [Tue, 29 Aug 2006 14:39:42 +0000 (14:39 +0000)]
gst/gstcaps.c: Code cleanups.

Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_structure_is_subset_field):
Code cleanups.
Fix memleak.

18 years agogst/gstxml.c: Improve and detypofy docs.
Tim-Philipp Müller [Tue, 29 Aug 2006 10:49:03 +0000 (10:49 +0000)]
gst/gstxml.c: Improve and detypofy docs.

Original commit message from CVS:
* gst/gstxml.c:
Improve and detypofy docs.
* tests/check/Makefile.am:
* tests/check/gst/.cvsignore:
* tests/check/gst/gstxml.c: (GST_START_TEST), (gst_xml_suite):
Add a basic test suite for GstXML.

18 years agogst/gstelement.c: Clear the pad caps when the element shut down all of the pads and...
Wim Taymans [Tue, 29 Aug 2006 09:56:57 +0000 (09:56 +0000)]
gst/gstelement.c: Clear the pad caps when the element shut down all of the pads and is not streaming data that could ...

Original commit message from CVS:
* gst/gstelement.c: (activate_pads), (clear_caps),
(iterator_activate_fold_with_resync), (gst_element_pads_activate):
Clear the pad caps when the element shut down all of the pads and
is not streaming data that could modify the caps.
Fixes #352958.

18 years agoI don't even know which arch that is
Thomas Vander Stichele [Tue, 29 Aug 2006 08:02:41 +0000 (08:02 +0000)]
I don't even know which arch that is

Original commit message from CVS:
I don't even know which arch that is

18 years agomore logical to log the sending pad, and the pad it is sending to
Thomas Vander Stichele [Mon, 28 Aug 2006 23:16:33 +0000 (23:16 +0000)]
more logical to log the sending pad, and the pad it is sending to

Original commit message from CVS:
more logical to log the sending pad, and the pad it is sending to

18 years agoplugins/elements/gstidentity.c: Revert previous change; I misunderstood single-segmen...
Michael Smith [Mon, 28 Aug 2006 18:20:00 +0000 (18:20 +0000)]
plugins/elements/gstidentity.c: Revert previous change; I misunderstood single-segment mode.

Original commit message from CVS:
* plugins/elements/gstidentity.c: (gst_identity_transform_ip):
Revert previous change; I misunderstood single-segment mode.

18 years agoplugins/elements/gstidentity.c: Unset DISCONT on buffers when using single-segment...
Michael Smith [Mon, 28 Aug 2006 18:08:09 +0000 (18:08 +0000)]
plugins/elements/gstidentity.c: Unset DISCONT on buffers when using single-segment mode.

Original commit message from CVS:
* plugins/elements/gstidentity.c: (gst_identity_transform_ip):
Unset DISCONT on buffers when using single-segment mode.

18 years agogst/gstcaps.*: Fix docs and indentation again.
Wim Taymans [Mon, 28 Aug 2006 16:39:20 +0000 (16:39 +0000)]
gst/gstcaps.*: Fix docs and indentation again.

Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_merge_structure):
* gst/gstcaps.h:
Fix docs and indentation again.
* tests/check/gst/gstquery.c: (GST_START_TEST):
Fix leak in tests and add some more tests.

18 years agolibs/gst/base/gstbasesink.c: Inform GstSegment of the last stop position in order...
Edward Hervey [Mon, 28 Aug 2006 15:57:39 +0000 (15:57 +0000)]
libs/gst/base/gstbasesink.c: Inform GstSegment of the last stop position in order for the current segment to have a p...

Original commit message from CVS:
* libs/gst/base/gstbasesink.c: (gst_base_sink_get_sync_times):
Inform GstSegment of the last stop position in order for the current
segment to have a proper duration if it doesn't have a specific stop
position from which a duration could be calculated.
This bug was noticeable when a non-flushing, non-update new segment was
followed by another segment (all buffers from the new segment were being
dropped).

18 years agolibs/gst/base/gstbasesrc.c: Small comment update.
Wim Taymans [Mon, 28 Aug 2006 15:48:24 +0000 (15:48 +0000)]
libs/gst/base/gstbasesrc.c: Small comment update.

Original commit message from CVS:
* libs/gst/base/gstbasesrc.c: (gst_base_src_perform_seek):
Small comment update.
* plugins/elements/gstidentity.c: (gst_identity_class_init),
(gst_identity_transform_ip):
Drop-probability is broken, mention this in the code with a
FIXME and also in the property description.
Make silent also be silent about the drop messages.

18 years agodocs/manual/appendix-win32.xml: Remove mention of popt, we don't depend on that any...
Tim-Philipp Müller [Mon, 28 Aug 2006 11:06:05 +0000 (11:06 +0000)]
docs/manual/appendix-win32.xml: Remove mention of popt, we don't depend on that any longer (#353136). Add some commen...

Original commit message from CVS:
* docs/manual/appendix-win32.xml:
Remove mention of popt, we don't depend on that any
longer (#353136). Add some comments pointing out that
this section is slightly outdated.

18 years agoInitialize variables when creating a new segment query.
Torsten Schoenfeld [Mon, 28 Aug 2006 08:44:29 +0000 (08:44 +0000)]
Initialize variables when creating a new segment query.

Original commit message from CVS:
Patch by: Torsten Schoenfeld <kaffeetisch at gmx dot de>
* gst/gstquery.c: (gst_query_new_segment):
* tests/check/gst/gstquery.c: (GST_START_TEST):
Initialize variables when creating a new segment query.
Fixes #353121.

18 years agoCheck for NULL before _reffing the bus. Fixes #353122.
Torsten Schoenfeld [Mon, 28 Aug 2006 08:35:31 +0000 (08:35 +0000)]
Check for NULL before _reffing the bus. Fixes #353122.

Original commit message from CVS:
Patch by: Torsten Schoenfeld <kaffeetisch at gmx dot de>
* gst/gstelement.c: (gst_element_get_bus):
* tests/check/gst/gstelement.c: (GST_START_TEST):
Check for NULL before _reffing the bus. Fixes #353122.

18 years agodocs/manual/basics-bus.xml: Docs update: fix wrong callback return value explanation...
Tim-Philipp Müller [Fri, 25 Aug 2006 16:46:09 +0000 (16:46 +0000)]
docs/manual/basics-bus.xml: Docs update: fix wrong callback return value explanation; add some lines about the implic...

Original commit message from CVS:
* docs/manual/basics-bus.xml:
Docs update: fix wrong callback return value explanation; add
some lines about the implicit relationship between main loop
and main context; remove duplicate main loop variable declaration.

18 years agotests/check/gst/gstcaps.c: Don't leak caps in unit test; add a few more simple checks.
Tim-Philipp Müller [Thu, 24 Aug 2006 12:30:04 +0000 (12:30 +0000)]
tests/check/gst/gstcaps.c: Don't leak caps in unit test; add a few more simple checks.

Original commit message from CVS:
* tests/check/gst/gstcaps.c: (GST_START_TEST):
Don't leak caps in unit test; add a few more simple
checks.

18 years agoimplement caps merging (fixes #352580)
Stefan Kost [Thu, 24 Aug 2006 10:40:31 +0000 (10:40 +0000)]
implement caps merging (fixes #352580)

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstcaps.c: (gst_caps_structure_is_subset_field),
(gst_caps_structure_is_subset), (gst_caps_merge),
(gst_caps_merge_structure):
* gst/gstcaps.h:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_transform_caps):
* tests/check/gst/gstcaps.c: (GST_START_TEST), (gst_caps_suite):
implement caps merging (fixes #352580)

18 years agotools/: add debug-log plotting developer tool (#340674)
Stefan Kost [Wed, 23 Aug 2006 18:53:44 +0000 (18:53 +0000)]
tools/: add debug-log plotting developer tool (#340674)

Original commit message from CVS:
* tools/Makefile.am:
* tools/gst-plot-timeline.py:
add debug-log plotting developer tool (#340674)

18 years agogst/gstpad.c: Improve debugging for task functions.
Wim Taymans [Wed, 23 Aug 2006 16:51:19 +0000 (16:51 +0000)]
gst/gstpad.c: Improve debugging for task functions.

Original commit message from CVS:
* gst/gstpad.c: (gst_pad_start_task), (gst_pad_pause_task),
(gst_pad_stop_task):
Improve debugging for task functions.
* gst/gsttask.c: (gst_task_func), (gst_task_set_lock),
(gst_task_start), (gst_task_pause), (gst_task_join):
Make sure that the task function started and finished after a
join().
Don't try to push the task function on the threadpool multiple
times.
Improve the g_warning message with some useful suggestions
about how to fix the problem.

18 years agogst/gstutils.c: Handle RESYNC correctly in _proxy_getcaps.
Wim Taymans [Wed, 23 Aug 2006 10:59:47 +0000 (10:59 +0000)]
gst/gstutils.c: Handle RESYNC correctly in _proxy_getcaps.

Original commit message from CVS:
* gst/gstutils.c: (gst_pad_proxy_getcaps):
Handle RESYNC correctly in _proxy_getcaps.

18 years agoword refcounting more precisely for gst_value_*_buffer
Thomas Vander Stichele [Wed, 23 Aug 2006 09:47:32 +0000 (09:47 +0000)]
word refcounting more precisely for gst_value_*_buffer

Original commit message from CVS:
word refcounting more precisely for gst_value_*_buffer

18 years agogst/gstxml.c: Chain up to parent class in dispose function and also unref the element...
Tim-Philipp Müller [Mon, 21 Aug 2006 15:19:40 +0000 (15:19 +0000)]
gst/gstxml.c: Chain up to parent class in dispose function and also unref the elements in the toplevel_elements GList.

Original commit message from CVS:
* gst/gstxml.c: (gst_xml_dispose), (gst_xml_parse_file),
(gst_xml_parse_memory), (gst_xml_get_element):
Chain up to parent class in dispose function and also
unref the elements in the toplevel_elements GList.
Don't leak XmlDocPtr in _parse_file() and _parse_memory().
Always return a reference in gst_xml_get_element() rather
than only sometimes.
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
Don't leak GstXml object.

18 years agoAPI: Add gst_caps_merge() and use it in basetransform, fixes #345444 in a better way
Stefan Kost [Mon, 21 Aug 2006 14:54:31 +0000 (14:54 +0000)]
API: Add gst_caps_merge() and use it in basetransform, fixes #345444 in a better way

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gstcaps.c: (gst_structure_is_equal_foreach),
(gst_caps_merge):
* gst/gstcaps.h:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_transform_caps):
API: Add gst_caps_merge() and use it in basetransform, fixes #345444
in a better way

18 years agogst/gstxml.c: Implement GObject::dispose virtual method in GstXML so we can free...
Edward Hervey [Mon, 21 Aug 2006 14:03:33 +0000 (14:03 +0000)]
gst/gstxml.c: Implement GObject::dispose virtual method in GstXML so we can free the top_elements GList.

Original commit message from CVS:
* gst/gstxml.c: (gst_xml_class_init), (gst_xml_dispose):
Implement GObject::dispose virtual method in GstXML so we can free the
top_elements GList.

18 years agogst/gstbuffer.c: Copy duration/offset_end/caps when creating a subbuffer of the compl...
Wim Taymans [Mon, 21 Aug 2006 09:30:04 +0000 (09:30 +0000)]
gst/gstbuffer.c: Copy duration/offset_end/caps when creating a subbuffer of the complete parent.

Original commit message from CVS:
* gst/gstbuffer.c: (gst_buffer_make_metadata_writable),
(gst_buffer_create_sub):
Copy duration/offset_end/caps when creating a subbuffer of the
complete parent.
Make the subbuffer read-only when we make the metadata writable for
now. Fixes #351768.
* tests/check/gst/gstbuffer.c: (GST_START_TEST):
Added check for metadata copy when creating subbuffers.

18 years agolibs/gst/base/gstbasetransform.c: Only call downstream buffer_alloc if transform...
Edward Hervey [Mon, 21 Aug 2006 09:20:42 +0000 (09:20 +0000)]
libs/gst/base/gstbasetransform.c: Only call downstream buffer_alloc if transform element is passthrough or always_in_...

Original commit message from CVS:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_buffer_alloc):
Only call downstream buffer_alloc if transform element is passthrough
or always_in_place. Closes #350449.

18 years agoChangeLog: ChangeLog surgery to add comments to previous changes
Stefan Kost [Sun, 20 Aug 2006 19:36:21 +0000 (19:36 +0000)]
ChangeLog: ChangeLog surgery to add comments to previous changes

Original commit message from CVS:
* ChangeLog:
ChangeLog surgery to add comments to previous changes

18 years agoSimplify caps to get rid of duplicates, fixes #345444
Stefan Kost [Sun, 20 Aug 2006 19:30:09 +0000 (19:30 +0000)]
Simplify caps to get rid of duplicates, fixes #345444

Original commit message from CVS:
* gst/gst.c:
* gst/gstpad.c: (gst_pad_set_active):
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_transform_caps):
Simplify caps to get rid of duplicates, fixes #345444

18 years agogst/gstvalue.*: Use these optimizations only internaly.
Stefan Kost [Sun, 20 Aug 2006 15:55:12 +0000 (15:55 +0000)]
gst/gstvalue.*: Use these optimizations only internaly.

Original commit message from CVS:
* gst/gstvalue.c:
* gst/gstvalue.h:
Use these optimizations only internaly.

18 years agogst/gstvalue.*: Saves the expensive lookup of the compare function in many cases...
Stefan Kost [Sun, 20 Aug 2006 14:30:20 +0000 (14:30 +0000)]
gst/gstvalue.*: Saves the expensive lookup of the compare function in many cases (#345444)

Original commit message from CVS:
* gst/gstvalue.c: (gst_value_compare_list),
(gst_value_compare_fraction_range),
(gst_value_intersect_fraction_fraction_range),
(gst_value_intersect_fraction_range_fraction_range),
(gst_value_subtract_fraction_fraction_range),
(gst_value_subtract_fraction_range_fraction_range),
(gst_value_get_compare_func), (gst_value_compare),
(gst_value_compare_with_func):
* gst/gstvalue.h:
Saves the expensive lookup of the compare function in many cases
(#345444)

18 years agotests/check/gst/gstinfo.c: Disable test that require gstdebug if it wasn't built...
Edward Hervey [Fri, 18 Aug 2006 13:41:02 +0000 (13:41 +0000)]
tests/check/gst/gstinfo.c: Disable test that require gstdebug if it wasn't built in core.

Original commit message from CVS:
* tests/check/gst/gstinfo.c: (gst_info_suite):
Disable test that require gstdebug if it wasn't built in core.

18 years agodocs/random/ensonic/logging.txt: update ideas
Stefan Kost [Fri, 18 Aug 2006 10:52:33 +0000 (10:52 +0000)]
docs/random/ensonic/logging.txt: update ideas

Original commit message from CVS:
* docs/random/ensonic/logging.txt:
update ideas
* gst/gstinfo.c: (gst_debug_log_default):
reorder fields, save some columns, add optinal color codes for log-
levels

18 years agodocs/random/ensonic/logging.txt: add ideas about making the logs abit more useful
Stefan Kost [Fri, 18 Aug 2006 08:07:12 +0000 (08:07 +0000)]
docs/random/ensonic/logging.txt: add ideas about making the logs abit more useful

Original commit message from CVS:
* docs/random/ensonic/logging.txt:
add ideas about making the logs abit more useful

18 years agodocs/pwg/: Update for 0.10 API (#340627). Add myself to authors list.
Tim-Philipp Müller [Thu, 17 Aug 2006 18:11:11 +0000 (18:11 +0000)]
docs/pwg/: Update for 0.10 API (#340627). Add myself to authors list.

Original commit message from CVS:
* docs/pwg/advanced-events.xml:
* docs/pwg/titlepage.xml:
Update for 0.10 API (#340627). Add myself
to authors list.

18 years agoMake gstcheck stuff show up in docs (still needs to be documented properly though).
Tim-Philipp Müller [Thu, 17 Aug 2006 10:46:19 +0000 (10:46 +0000)]
Make gstcheck stuff show up in docs (still needs to be documented properly though).

Original commit message from CVS:
* docs/libs/gstreamer-libs-docs.sgml:
* docs/libs/gstreamer-libs-sections.txt:
* libs/gst/check/gstbufferstraw.c:
Make gstcheck stuff show up in docs (still needs to
be documented properly though).

18 years agoAdd internal helpers for pre-registering quarks from static strings and using the...
Jan Schmidt [Wed, 16 Aug 2006 11:47:54 +0000 (11:47 +0000)]
Add internal helpers for pre-registering quarks from static strings and using the quark values directly instead of lo...

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/Makefile.am:
* gst/gst.c: (init_post):
* gst/gst_private.h:
* gst/gstquark.c: (_priv_gst_quarks_initialize):
* gst/gstquark.h:
* gst/gstquery.c: (gst_query_new_position),
(gst_query_set_position), (gst_query_parse_position),
(gst_query_new_duration), (gst_query_set_duration),
(gst_query_parse_duration), (gst_query_new_convert),
(gst_query_set_convert), (gst_query_parse_convert),
(gst_query_new_segment), (gst_query_set_segment),
(gst_query_parse_segment), (gst_query_new_seeking),
(gst_query_set_seeking), (gst_query_parse_seeking):
Add internal helpers for pre-registering quarks from static strings
and using the quark values directly instead of looking them up when
creating and parsing queries. Can be used for event construction too.
Closes #350432.

18 years agogst/gstbin.c: Fix bogus docs.
Wim Taymans [Wed, 16 Aug 2006 08:54:56 +0000 (08:54 +0000)]
gst/gstbin.c: Fix bogus docs.

Original commit message from CVS:
* gst/gstbin.c:
Fix bogus docs.

18 years agogst/gstutils.c: Fix memleak (#351502).
Tim-Philipp Müller [Tue, 15 Aug 2006 18:45:39 +0000 (18:45 +0000)]
gst/gstutils.c: Fix memleak (#351502).

Original commit message from CVS:
* gst/gstutils.c: (gst_util_set_value_from_string):
Fix memleak (#351502).
* tests/check/gst/gstutils.c: (GST_START_TEST), (gst_utils_suite):
Add unit test for most of gst_util_set_value_from_string()
(not that one would want to encourage use of this function).

18 years agolibs/gst/check/gstcheck.h: Use const gchar * variables in fail_unless_equals_string...
Tim-Philipp Müller [Tue, 15 Aug 2006 18:29:22 +0000 (18:29 +0000)]
libs/gst/check/gstcheck.h: Use const gchar * variables in fail_unless_equals_string macro to avoid compiler warnings ...

Original commit message from CVS:
* libs/gst/check/gstcheck.h:
Use const gchar * variables in fail_unless_equals_string
macro to avoid compiler warnings (and don't use tabs for
indenting).

18 years agotools/gst-launch.c: More space on the left for the tag names, to cater for the 'exten...
Tim-Philipp Müller [Tue, 15 Aug 2006 10:08:34 +0000 (10:08 +0000)]
tools/gst-launch.c: More space on the left for the tag names, to cater for the 'extended comment' tag (not touching t...

Original commit message from CVS:
* tools/gst-launch.c: (print_tag):
More space on the left for the tag names, to cater
for the 'extended comment' tag (not touching the
string for the first line since it's translated).

18 years agoChangeLog surgery: don't forget to mention the other change in the ChangeLog
Tim-Philipp Müller [Tue, 15 Aug 2006 09:44:58 +0000 (09:44 +0000)]
ChangeLog surgery: don't forget to mention the other change in the ChangeLog

Original commit message from CVS:
ChangeLog surgery: don't forget to mention the other change in the ChangeLog

18 years agolibs/gst/check/gstcheck.h: Fix ASSERT_CRITICAL and ASSERT_WARNING macros to actually...
Tim-Philipp Müller [Tue, 15 Aug 2006 09:33:24 +0000 (09:33 +0000)]
libs/gst/check/gstcheck.h: Fix ASSERT_CRITICAL and ASSERT_WARNING macros to actually print something when they fail.

Original commit message from CVS:
* libs/gst/check/gstcheck.h:
Fix ASSERT_CRITICAL and ASSERT_WARNING macros to actually
print something when they fail.

18 years agoAPI: add GST_TAG_EXTENDED_COMMENT (#350935).
Tim-Philipp Müller [Mon, 14 Aug 2006 19:04:56 +0000 (19:04 +0000)]
API: add GST_TAG_EXTENDED_COMMENT (#350935).

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gsttaglist.c: (_gst_tag_initialize):
* gst/gsttaglist.h:
API: add GST_TAG_EXTENDED_COMMENT (#350935).

18 years agogst/gstinfo.c: Make GST_PTR_FORMAT print messages as well.
Tim-Philipp Müller [Mon, 14 Aug 2006 17:29:31 +0000 (17:29 +0000)]
gst/gstinfo.c: Make GST_PTR_FORMAT print messages as well.

Original commit message from CVS:
* gst/gstinfo.c: (gst_debug_print_object):
Make GST_PTR_FORMAT print messages as well.
* tests/check/gst/gstinfo.c: (printf_extension_log_func),
(GST_START_TEST), (gst_info_suite):
More tests.

18 years agogst/gstelementfactory.c: If the GstElementClass doesn't have a GstElementDetails...
Edward Hervey [Mon, 14 Aug 2006 15:33:17 +0000 (15:33 +0000)]
gst/gstelementfactory.c: If the GstElementClass doesn't have a GstElementDetails with all fields then error out nicel...

Original commit message from CVS:
* gst/gstelementfactory.c: (gst_element_register):
If the GstElementClass doesn't have a GstElementDetails with all fields
filled up correctly (longname, description AND author), then error out
nicely instead of crashing.

18 years agogst/gststructure.c: Fix typo in docs and re-wrap docs blurb to not exceed 80 chars...
Tim-Philipp Müller [Mon, 14 Aug 2006 12:35:06 +0000 (12:35 +0000)]
gst/gststructure.c: Fix typo in docs and re-wrap docs blurb to not exceed 80 chars/line.

Original commit message from CVS:
* gst/gststructure.c:
Fix typo in docs and re-wrap docs blurb to not exceed 80 chars/line.
* gst/gstvalue.h:
Expand on the difference between arrays and lists as we use them.

18 years agolibs/gst/base/gstbasesrc.c: If the parent state change function failed, don't assume...
Wim Taymans [Mon, 14 Aug 2006 07:44:14 +0000 (07:44 +0000)]
libs/gst/base/gstbasesrc.c: If the parent state change function failed, don't assume we can safely stop the source, t...

Original commit message from CVS:
* libs/gst/base/gstbasesrc.c: (gst_base_src_change_state):
If the parent state change function failed, don't assume we can safely
stop the source, this will be done when the pads are deactivated.

18 years agogst/: Small doc updates.
Wim Taymans [Mon, 14 Aug 2006 07:35:09 +0000 (07:35 +0000)]
gst/: Small doc updates.

Original commit message from CVS:
* gst/gstbuffer.c:
* gst/gsttask.c: (gst_task_join):
Small doc updates.

* gst/gstpad.c: (gst_pad_activate_pull), (gst_pad_activate_push),
(gst_pad_stop_task):
When pad (de)activation failed for some reason, restore the old
activation mode and set the pad to flushing instead of assuming the
pad is deactivated.
If the _task_join() failed, reinstall the task on the pad so that it can
be stopped later and return an error.

18 years agoGST_DISABLE_DEPRECATED is only for users of API that don't want to see deprecated...
Andy Wingo [Fri, 11 Aug 2006 15:26:33 +0000 (15:26 +0000)]
GST_DISABLE_DEPRECATED is only for users of API that don't want to see deprecated functions in the headers; people th...

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

* configure.ac:
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packetizer_new):
* tests/check/libs/gdp.c: (gst_dp_suite): GST_DISABLE_DEPRECATED
is only for users of API that don't want to see deprecated
functions in the headers; people that want to compile out
deprecated code should pass -DGST_REMOVE_DEPRECATED into the
CFLAGS. Fixes the build of multifdsink, or will soon..

18 years agodocs/gst/gstreamer-sections.txt: Add GstClockClass vmethod docs.
Wim Taymans [Fri, 11 Aug 2006 15:24:03 +0000 (15:24 +0000)]
docs/gst/gstreamer-sections.txt: Add GstClockClass vmethod docs.

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
Add GstClockClass vmethod docs.
* gst/gstcaps.h:
Mark #endif with comment for associated #if
* gst/gstclock.c: (gst_clock_id_wait):
* gst/gstclock.h:
Add vmethod wait_jitter to avoid an unneeded _get_time() for
most clock implementations.
Document vmethods.
Flesh out docs about resolution methods.
API: GstClockClass::wait_jitter
* gst/gstsystemclock.c: (gst_system_clock_class_init),
(gst_system_clock_async_thread),
(gst_system_clock_id_wait_jitter_unlocked),
(gst_system_clock_id_wait_jitter):
Use base class wait_jitter variant for improved performance
due to less clock polling.

18 years agogst/gst.c: Set gst as being initialized before scanning/updating the registry, since...
Edward Hervey [Fri, 11 Aug 2006 15:07:58 +0000 (15:07 +0000)]
gst/gst.c: Set gst as being initialized before scanning/updating the registry, since there might be some plugins that...

Original commit message from CVS:
* gst/gst.c: (gst_init_check), (init_post):
Set gst as being initialized before scanning/updating the registry,
since there might be some plugins that call gst_init() and we don't
want to loop back in.
Closes #350879

18 years agoMention that we fixed bug #349943 with the last commit.
Wim Taymans [Fri, 11 Aug 2006 13:13:06 +0000 (13:13 +0000)]
Mention that we fixed bug #349943 with the last commit.

Original commit message from CVS:
Mention that we fixed bug #349943 with the last commit.

18 years agodocs/design/part-qos.txt: Bring docs in line with the code. Mostly the sign of the...
Wim Taymans [Fri, 11 Aug 2006 13:05:30 +0000 (13:05 +0000)]
docs/design/part-qos.txt: Bring docs in line with the code. Mostly the sign of the jitter was wrong in the docs.

Original commit message from CVS:
* docs/design/part-qos.txt:
Bring docs in line with the code. Mostly the sign of the jitter was
wrong in the docs.
* gst/gstclock.c:
Fix the docs for the jitter.
* gst/gstevent.c: (gst_event_new_custom), (gst_event_new_tag),
(gst_event_parse_tag), (gst_event_new_buffer_size),
(gst_event_parse_buffer_size), (gst_event_parse_qos),
(gst_event_new_seek), (gst_event_parse_seek),
(gst_event_new_navigation):
Make sure the GstStructure has no parent when creating custom
events.
Add some more argument checking so that we avoid 0.0 rates.
Flesh out the docs for the QoS event some more.

18 years agoForgot to mention fixed bug.
Wim Taymans [Fri, 11 Aug 2006 10:21:36 +0000 (10:21 +0000)]
Forgot to mention fixed bug.

Original commit message from CVS:
Forgot to mention fixed bug.

18 years agoDoc updates.
Wim Taymans [Fri, 11 Aug 2006 10:19:51 +0000 (10:19 +0000)]
Doc updates.

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* gst/gst.c: (gst_init_get_option_group), (gst_init_check),
(ensure_current_registry_forking), (ensure_current_registry),
(parse_one_option), (parse_goption_arg), (gst_deinit),
(gst_registry_fork_is_enabled), (gst_registry_fork_set_enabled):
* gst/gst.h:
Doc updates.
Added API and command line option to disable registry forking in
addition to the environment variable.
Constify some static arrays.
Added some more debug.
Don't deinit twice.
API: gst_registry_fork_is_enabled()
API: gst_registry_fork_set_enabled()
API: --gst-disable-registry-fork command line option

18 years agogst/gst.c: Fix typo in error message.
Tim-Philipp Müller [Fri, 11 Aug 2006 09:59:29 +0000 (09:59 +0000)]
gst/gst.c: Fix typo in error message.

Original commit message from CVS:
* gst/gst.c: (gst_init):
Fix typo in error message.

18 years agolibs/gst/controller/gstcontroller.h: fix ABI size-correction
Stefan Kost [Thu, 10 Aug 2006 20:05:30 +0000 (20:05 +0000)]
libs/gst/controller/gstcontroller.h: fix ABI size-correction

Original commit message from CVS:
* libs/gst/controller/gstcontroller.h:
fix ABI size-correction
* tests/check/libs/gdp.c: (gst_dp_suite):
make tests that use deprecated API conditional

18 years agoAPI: add gst_object_{s,g}et_control_rate(), add private data section, fix docs
Stefan Kost [Thu, 10 Aug 2006 19:46:14 +0000 (19:46 +0000)]
API: add gst_object_{s,g}et_control_rate(), add private data section, fix docs

Original commit message from CVS:
* docs/libs/gstreamer-libs-sections.txt:
* libs/gst/controller/gstcontroller.c:
(_gst_controller_get_property), (_gst_controller_set_property),
(_gst_controller_init), (_gst_controller_class_init):
* libs/gst/controller/gstcontroller.h:
* libs/gst/controller/gsthelper.c: (gst_object_get_control_rate),
(gst_object_set_control_rate):
API: add gst_object_{s,g}et_control_rate(), add private data section,
fix docs
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packetizer_new):
* libs/gst/dataprotocol/dataprotocol.h:
add deprecation guards to make gtk-doc happy and allow disabling cruft

18 years agotests/check/: Let's enable the new unit test as well.
Tim-Philipp Müller [Wed, 9 Aug 2006 15:26:54 +0000 (15:26 +0000)]
tests/check/: Let's enable the new unit test as well.

Original commit message from CVS:
* tests/check/Makefile.am:
* tests/check/gst/.cvsignore:
Let's enable the new unit test as well.

18 years agoAPI: add GST_SEGMENT_FORMAT, which is a printf extension we register that lets us...
Tim-Philipp Müller [Wed, 9 Aug 2006 15:13:14 +0000 (15:13 +0000)]
API: add GST_SEGMENT_FORMAT, which is a printf extension we register that lets us easily dump GstSegments into debug ...

Original commit message from CVS:
* configure.ac:
* docs/gst/gstreamer-sections.txt:
* gst/gstconfig.h.in:
* gst/gstinfo.c: (_gst_debug_init), (gst_debug_print_segment),
(_gst_info_printf_extension_ptr),
(_gst_info_printf_extension_segment):
API: add GST_SEGMENT_FORMAT, which is a printf extension we
register that lets us easily dump GstSegments into debug
logs (#350419).
* tests/check/gst/gstinfo.c: (segment_printf_extension_log_func),
(info_segment_format_printf_extension), (gst_info_suite):
Add simple unit test that logs a bunch of different segments (not
valgrinded at the moment because of leaks in gst_debug_add_log_function).

18 years agolibs/gst/base/gstbasetransform.c: Even if we can't figure out the proper format to...
Edward Hervey [Wed, 9 Aug 2006 11:01:20 +0000 (11:01 +0000)]
libs/gst/base/gstbasetransform.c: Even if we can't figure out the proper format to request downstream, call buffer_al...

Original commit message from CVS:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_buffer_alloc):
Even if we can't figure out the proper format to request downstream,
call buffer_alloc() downstream with the input parameters without setting
the caps on the srcpad. This will force negotiation in the chain
function.
Closes #350449

18 years agogst/gstghostpad.c: Unlinking from a pad without a target is now a perfectly valid...
Edward Hervey [Tue, 8 Aug 2006 16:24:58 +0000 (16:24 +0000)]
gst/gstghostpad.c: Unlinking from a pad without a target is now a perfectly valid case which should NOT raise an asse...

Original commit message from CVS:
* gst/gstghostpad.c: (gst_ghost_pad_do_unlink):
Unlinking from a pad without a target is now a perfectly valid case
which should NOT raise an assertion.
This case would happen if a linked ghostpad its target set to NULL after
it was previously linked.

18 years agotests/check/libs/gdp.c: Also comment out the test (see below).
Edward Hervey [Tue, 8 Aug 2006 09:56:45 +0000 (09:56 +0000)]
tests/check/libs/gdp.c: Also comment out the test (see below).

Original commit message from CVS:
* tests/check/libs/gdp.c:
Also comment out the test (see below).

18 years agotests/check/libs/gdp.c: Use the architecture information from config.h and not gcc...
Edward Hervey [Tue, 8 Aug 2006 09:07:34 +0000 (09:07 +0000)]
tests/check/libs/gdp.c: Use the architecture information from config.h and not gcc macros in order to properly disabl...

Original commit message from CVS:
* tests/check/libs/gdp.c: (gst_dp_suite):
Use the architecture information from config.h and not gcc macros
in order to properly disable a test that fails on PPC64.

18 years agogst/gstelement.c: Don't crash printing the warning if the pad has no parent.
Tim-Philipp Müller [Fri, 4 Aug 2006 15:15:24 +0000 (15:15 +0000)]
gst/gstelement.c: Don't crash printing the warning if the pad has no parent.

Original commit message from CVS:
* gst/gstelement.c: (gst_element_remove_pad):
Don't crash printing the warning if the pad has no parent.

18 years agolibs/gst/dataprotocol/dataprotocol.c: Make debug category static
Wim Taymans [Wed, 2 Aug 2006 15:19:30 +0000 (15:19 +0000)]
libs/gst/dataprotocol/dataprotocol.c: Make debug category static

Original commit message from CVS:
* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_header_from_buffer_any), (gst_dp_packet_from_caps_any),
(gst_dp_crc), (gst_dp_header_payload_length),
(gst_dp_header_payload_type), (gst_dp_packet_from_event),
(gst_dp_packet_from_event_1_0), (gst_dp_buffer_from_header),
(gst_dp_caps_from_packet), (gst_dp_event_from_packet_0_2),
(gst_dp_event_from_packet), (gst_dp_validate_header),
(gst_dp_validate_payload):
Make debug category static
Constify the crc table.
Do some more arg checking in public functions.
Fix some docs and do some small cleanups.
* tests/check/libs/gdp.c: (GST_START_TEST), (gst_dp_suite):
Add some more checks to see if GDP deals with bogus input.

18 years agogst/gstvalue.c: Fix GstValueList comparison code. Fixes #347293.
Wim Taymans [Mon, 31 Jul 2006 16:34:41 +0000 (16:34 +0000)]
gst/gstvalue.c: Fix GstValueList comparison code. Fixes #347293.

Original commit message from CVS:
* gst/gstvalue.c: (gst_value_compare_list):
Fix GstValueList comparison code. Fixes #347293.
* tests/check/gst/gstvalue.c: (GST_START_TEST):
Check to test GstValueList comparison.

18 years agolibs/gst/base/gstbasetransform.c: Use OBJECT_LOCK and refcounting to get the pad...
Wim Taymans [Mon, 31 Jul 2006 15:12:59 +0000 (15:12 +0000)]
libs/gst/base/gstbasetransform.c: Use OBJECT_LOCK and refcounting to get the pad caps in the buffer_alloc function be...

Original commit message from CVS:
* libs/gst/base/gstbasetransform.c:
(gst_base_transform_buffer_alloc):
Use OBJECT_LOCK and refcounting to get the pad caps in the
buffer_alloc function because the caps could change while we are
busy with them. Fixes #349105

18 years agogst/gstelementfactory.c: Remove unnecessary ref/unref pair
Wim Taymans [Mon, 31 Jul 2006 15:12:01 +0000 (15:12 +0000)]
gst/gstelementfactory.c: Remove unnecessary ref/unref pair

Original commit message from CVS:
* gst/gstelementfactory.c: (gst_element_factory_create):
Remove unnecessary ref/unref pair
* gst/parse/grammar.y:
Make sure to free the parse buffer on all code paths.
Move a g_free up to the error handler where it's easier to see.
* tests/check/gst/gstevent.c: (test_event):
Extending timeout for downstream travelling events to 10 seconds to
hopefully avoid intermittent failure on the buildbots.
* tests/check/pipelines/parse-launch.c: (run_delayed_test):
Don't manually set the state of the src element - it will happen as a
natural consequence of the pipeline changing state, and that way it
will do it in the right order too.

18 years agogst/gstelementfactory.c: Remove unnecessary ref/unref pair
Jan Schmidt [Mon, 31 Jul 2006 15:07:30 +0000 (15:07 +0000)]
gst/gstelementfactory.c: Remove unnecessary ref/unref pair

Original commit message from CVS:
* gst/gstelementfactory.c: (gst_element_factory_create):
Remove unnecessary ref/unref pair
* gst/parse/grammar.y:
Make sure to free the parse buffer on all code paths.
Move a g_free up to the error handler where it's easier to see.
* tests/check/gst/gstevent.c: (test_event):
Extending timeout for downstream travelling events to 10 seconds to
hopefully avoid intermittent failure on the buildbots.
* tests/check/pipelines/parse-launch.c: (run_delayed_test):
Don't manually set the state of the src element - it will happen as a
natural consequence of the pipeline changing state, and that way it
will do it in the right order too.

18 years agogst/gstutils.c: Protect _PAD_CAPS with OBJECT_LOCK.
Wim Taymans [Mon, 31 Jul 2006 14:23:26 +0000 (14:23 +0000)]
gst/gstutils.c: Protect _PAD_CAPS with OBJECT_LOCK.

Original commit message from CVS:
* gst/gstutils.c: (gst_pad_get_fixed_caps_func):
Protect _PAD_CAPS with OBJECT_LOCK.

18 years agogst/gstpad.c: Use _DEBUG_OBJECT when it makes sense.
Wim Taymans [Mon, 31 Jul 2006 14:21:10 +0000 (14:21 +0000)]
gst/gstpad.c: Use _DEBUG_OBJECT when it makes sense.

Original commit message from CVS:
* gst/gstpad.c: (gst_pad_class_init), (gst_pad_dispose),
(gst_pad_get_property), (gst_pad_activate_pull),
(gst_pad_activate_push), (gst_pad_set_blocked_async),
(gst_pad_set_activate_function),
(gst_pad_set_activatepull_function),
(gst_pad_set_activatepush_function), (gst_pad_set_chain_function),
(gst_pad_set_getrange_function),
(gst_pad_set_checkgetrange_function), (gst_pad_set_event_function),
(gst_pad_set_query_function), (gst_pad_set_query_type_function),
(gst_pad_set_internal_link_function), (gst_pad_set_link_function),
(gst_pad_set_unlink_function), (gst_pad_set_getcaps_function),
(gst_pad_set_acceptcaps_function),
(gst_pad_set_fixatecaps_function), (gst_pad_set_setcaps_function),
(gst_pad_set_bufferalloc_function), (gst_pad_link_check_hierarchy),
(gst_pad_get_caps_unlocked), (gst_pad_get_caps),
(gst_pad_peer_get_caps), (gst_pad_accept_caps),
(gst_pad_peer_accept_caps), (gst_pad_set_caps),
(gst_pad_configure_sink), (gst_pad_configure_src),
(gst_pad_get_allowed_caps), (gst_pad_get_negotiated_caps),
(gst_pad_buffer_alloc_unchecked), (gst_pad_alloc_buffer_full),
(gst_pad_query), (gst_pad_load_and_link), (handle_pad_block),
(gst_pad_chain_unchecked), (gst_pad_push), (gst_pad_get_range),
(gst_pad_send_event):
Use _DEBUG_OBJECT when it makes sense.
Protect GST_PAD_CAPS with the OBJECT_LOCK.
Small cleanups and code reflows.
Avoid caps refcounting in _accept_caps.
Refactor alloc_buffer so that the code performed on the peer is in a
separate function. Also if the pad does not implement a buffer alloc
function, we should still check if the pad is flushing before falling
back to the default allocator.

18 years agotests/check/pipelines/parse-launch.c: Make all uses of identity and fakesink have...
Jan Schmidt [Sun, 30 Jul 2006 22:20:42 +0000 (22:20 +0000)]
tests/check/pipelines/parse-launch.c: Make all uses of identity and fakesink have silent=true to avoid serialising ev...

Original commit message from CVS:
* tests/check/pipelines/parse-launch.c: (GST_START_TEST):
Make all uses of identity and fakesink have silent=true to avoid
serialising every passing data structure, which is breaking tests
on FC4 for some unknown reason.

18 years agogst/parse/: Reverted previous patch as it required to bump the flex dependency to...
Stefan Kost [Sun, 30 Jul 2006 18:58:28 +0000 (18:58 +0000)]
gst/parse/: Reverted previous patch as it required to bump the flex dependency to 2.5.31, where fc4/5 seem to ship on...

Original commit message from CVS:
* gst/parse/Makefile.am:
* gst/parse/grammar.y:
* gst/parse/parse.l:
Reverted previous patch as it required to bump the flex dependency to
2.5.31, where fc4/5 seem to ship only the ancient 2.5.4a :(

18 years agogst/parse/: push & pop the state of the lexer for reentrant use case
Marc-Andre Lureau [Sun, 30 Jul 2006 18:32:49 +0000 (18:32 +0000)]
gst/parse/: push & pop the state of the lexer for reentrant use case

Original commit message from CVS:
Patch by: Marc-Andre Lureau <marcandre.lureau@gmail.com>
* gst/parse/Makefile.am:
* gst/parse/grammar.y:
* gst/parse/parse.l:
push & pop the state of the lexer for reentrant use case
Fixes #349180

18 years agolibs/gst/base/gstbasesrc.h: Note in the docs that the ::newsegment vfunc is not actua...
Tim-Philipp Müller [Sat, 29 Jul 2006 13:45:09 +0000 (13:45 +0000)]
libs/gst/base/gstbasesrc.h: Note in the docs that the ::newsegment vfunc is not actually used by

Original commit message from CVS:
* libs/gst/base/gstbasesrc.h:
Note in the docs that the ::newsegment vfunc is not actually used by
GstBaseSrc.

18 years agolibs/gst/base/gstcollectpads.c: When flushing a pad, also clear the queued buffer...
Wim Taymans [Fri, 28 Jul 2006 14:09:10 +0000 (14:09 +0000)]
libs/gst/base/gstcollectpads.c: When flushing a pad, also clear the queued buffer so that we don't accidentally use i...

Original commit message from CVS:
* libs/gst/base/gstcollectpads.c:
(gst_collect_pads_set_flushing_unlocked), (gst_collect_pads_pop),
(gst_collect_pads_clear), (gst_collect_pads_flush),
(gst_collect_pads_event), (gst_collect_pads_chain):
When flushing a pad, also clear the queued buffer so that we don't
accidentally use it when we shouldn't.
Fix leaks by inreffing incomming buffer.
Flush out queued buffers in case of errors.
Fixes #347452.

18 years agodocs/random/phonon-gst: Random notes about a Phonon backend.
Wim Taymans [Fri, 28 Jul 2006 10:17:54 +0000 (10:17 +0000)]
docs/random/phonon-gst: Random notes about a Phonon backend.

Original commit message from CVS:
* docs/random/phonon-gst:
Random notes about a Phonon backend.

18 years agolibs/gst/base/gstbasetransform.c: Extra debug output
Jan Schmidt [Thu, 27 Jul 2006 14:32:01 +0000 (14:32 +0000)]
libs/gst/base/gstbasetransform.c: Extra debug output

Original commit message from CVS:
* libs/gst/base/gstbasetransform.c: (gst_base_transform_setcaps):
Extra debug output
* tests/check/libs/gdp.c: (gst_dp_suite):
Take a whack at fixing the ppc compile using a different define to
disable the broken test.
* tests/check/pipelines/parse-launch.c: (GST_START_TEST):
Remove excess g_print()

18 years agotests/check/pipelines/parse-launch.c: Oops, meant to uncomment this line too to dampe...
Jan Schmidt [Thu, 27 Jul 2006 13:44:22 +0000 (13:44 +0000)]
tests/check/pipelines/parse-launch.c: Oops, meant to uncomment this line too to dampen the noise a bit.

Original commit message from CVS:
* tests/check/pipelines/parse-launch.c: (expected_fail_pipe):
Oops, meant to uncomment this line too to dampen the noise a bit.

18 years agoFix some of the leaks exposed by extending the parse-launch testsuite, and move the...
Jan Schmidt [Thu, 27 Jul 2006 13:26:27 +0000 (13:26 +0000)]
Fix some of the leaks exposed by extending the parse-launch testsuite, and move the 3 I can't figure out into a separ...

Original commit message from CVS:
* gst/parse/grammar.y:
* gst/parse/parse.l:
* tests/check/pipelines/parse-launch.c: (expected_fail_pipe),
(GST_START_TEST), (parse_suite):
Fix some of the leaks exposed by extending the parse-launch testsuite,
and move the 3 I can't figure out into a separate test that won't run
the pipelines unless the appropriate line is uncommented.

18 years agoplugins/elements/gstfilesrc.c: Requesting 0 bytes before the end of the file should...
Tim-Philipp Müller [Thu, 27 Jul 2006 12:39:42 +0000 (12:39 +0000)]
plugins/elements/gstfilesrc.c: Requesting 0 bytes before the end of the file should result in

Original commit message from CVS:
* plugins/elements/gstfilesrc.c: (gst_file_src_create_read):
Requesting 0 bytes before the end of the file should result in
FLOW_OK and an empty buffer, not FLOW_UNEXPECTED. Thank you
unit test.

18 years agogst/gstcaps.c: Fix useless assert, a uint is always positive.
Wim Taymans [Thu, 27 Jul 2006 11:00:21 +0000 (11:00 +0000)]
gst/gstcaps.c: Fix useless assert, a uint is always positive.

Original commit message from CVS:
* gst/gstcaps.c: (gst_static_caps_get), (gst_caps_get_structure):
Fix useless assert, a uint is always positive.
* gst/gststructure.c: (gst_structure_nth_field_name),
(gst_structure_foreach), (gst_structure_map_in_place):
Check input arguments for public functions to avoid obvious crashes.
* plugins/elements/gstfakesink.c: (gst_fake_sink_render):
* plugins/elements/gstfakesink.h:
Do less useless typechecking.

18 years agoplugins/elements/gstfilesrc.c: Do not use mmap() by default since there are a number...
Tim-Philipp Müller [Thu, 27 Jul 2006 10:54:29 +0000 (10:54 +0000)]
plugins/elements/gstfilesrc.c: Do not use mmap() by default since there are a number of error conditions that we woul...

Original commit message from CVS:
* plugins/elements/gstfilesrc.c: (gst_file_src_class_init):
Do not use mmap() by default since there are a number of error
conditions that we would like to handle in a non-fatal way that
will result in a SIGBUS if we use mmap(). Examples: external
devices (USB harddrive, portable music player) being unplugged
while in use; file on mounted CD/DVD that can't be read because
the medium is partly damaged. Fixes #348455 and #348475.

18 years agogst/gstquery.h: Delete unused and misleading define of GST_QUERY_TYPE_RATE_DEN -...
Jan Schmidt [Wed, 26 Jul 2006 22:59:19 +0000 (22:59 +0000)]
gst/gstquery.h: Delete unused and misleading define of GST_QUERY_TYPE_RATE_DEN - rates are a gdouble

Original commit message from CVS:
* gst/gstquery.h:
Delete unused and misleading define of GST_QUERY_TYPE_RATE_DEN -
rates are a gdouble

18 years agogst/gstregistry.c: Move big documentation comment into class section header, so that...
Stefan Kost [Wed, 26 Jul 2006 20:30:55 +0000 (20:30 +0000)]
gst/gstregistry.c: Move big documentation comment into class section header, so that it appears in the API docs.

Original commit message from CVS:
* gst/gstregistry.c:
Move big documentation comment into class section header, so that it
appears in the API docs.