Commit graph

534 commits

Author SHA1 Message Date
David Schleef 5f370a6455 gst/gstcaps.c: Patch from Tim-Philipp Müller to fix GST_CAPS() and GST_IS_CAPS(). (bug #141304)
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_copy), (gst_caps_free),
(gst_caps_append), (gst_caps_append_structure),
(gst_caps_get_size), (gst_caps_get_structure), (gst_caps_copy_1),
(gst_caps_set_simple), (gst_caps_set_simple_valist),
(gst_caps_is_any), (gst_caps_is_empty), (gst_caps_is_chained),
(gst_caps_is_fixed), (gst_caps_is_always_compatible),
(gst_caps_intersect), (gst_caps_normalize),
(gst_caps_transform_to_string):  Patch from Tim-Philipp Müller
to fix GST_CAPS() and GST_IS_CAPS(). (bug #141304)
* gst/gstcaps.h: use GST_IS_CAPS().
2004-04-28 20:19:46 +00:00
David Schleef 1234b1126b gst/gstcpu.c: Don't clobber ebx in inline assembly. gcc doesn't handle it correctly. (bug #141083)
Original commit message from CVS:
* gst/gstcpu.c: (gst_cpuid_i386): Don't clobber ebx in inline
assembly.  gcc doesn't handle it correctly. (bug #141083)
* gst/gsttrashstack.h: same
2004-04-26 20:04:22 +00:00
Benjamin Otte a4c2564b60 gst/gstelement.c: fix assertion to do an int comparison
Original commit message from CVS:
* gst/gstelement.c: (gst_element_change_state):
fix assertion to do an int comparison
2004-04-25 20:28:21 +00:00
Benjamin Otte d0c08ccb19 gst/elements/gstfilesrc.c: better debugging output on error
Original commit message from CVS:
* gst/elements/gstfilesrc.c: (gst_filesrc_open_file):
better debugging output on error
2004-04-25 18:24:02 +00:00
Benjamin Otte 3d021d552f gst/gstcaps.c: fix memleak
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_subtract):
fix memleak
2004-04-25 17:46:30 +00:00
Benjamin Otte 6eb8a092a4 gst/gstvalue.c: add comparison function for buffers
Original commit message from CVS:
* gst/gstvalue.c: (gst_value_compare_buffer),
(_gst_value_initialize):
add comparison function for buffers
2004-04-23 01:20:59 +00:00
Ronald S. Bultje fd8df4039c docs/pwg/pwg.xml: Just found out that this so-called "ima-wav" format is really just "dvi adpcm" (according to the MS...
Original commit message from CVS:
* docs/pwg/pwg.xml:
Just found out that this so-called "ima-wav" format is really
just "dvi adpcm" (according to the MS WAV documentation). So
renaming it. We didn't use it yet anyway.
2004-04-23 00:39:34 +00:00
Benjamin Otte 3b2cc105c3 gst/gstcaps.c: call gst_caps_is_subset
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_is_always_compatible):
call gst_caps_is_subset
2004-04-23 00:04:50 +00:00
Benjamin Otte 2792a59df4 gst/gstcaps.c: add documentation
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_subtract), (gst_caps_is_equal),
(gst_caps_is_subset):
add documentation
2004-04-23 00:00:25 +00:00
Benjamin Otte bb1302b533 gst/gstcaps.c: fix simplifying and subtracting not working correctly with optional properties solve assorted problems...
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_structure_subtract_field),
(gst_caps_structure_subtract), (gst_caps_subtract),
(gst_caps_structure_figure_out_union),
(gst_caps_structure_simplify), (gst_caps_do_simplify):
fix simplifying and subtracting not working correctly with optional
properties
solve assorted problems that make it now simplify ebven more
* docs/gst/tmpl/gstcaps.sgml:
* gst/gstcaps.h:
make gst_caps_do_simplify return a bool to indicate if it simplified
* testsuite/caps/simplify.c: (main):
add more checks. The tests is quite a bit useless right now because
the core is heavily simplifying itself.
* testsuite/caps/caps.h:
fix caps to contain all optional properties
2004-04-22 23:50:46 +00:00
Benjamin Otte 1c0dbd87b9 docs/gst/tmpl/: update for recent API changes
Original commit message from CVS:
* docs/gst/tmpl/gstcaps.sgml:
* docs/gst/tmpl/gstfilesrc.sgml:
* docs/gst/tmpl/gststructure.sgml:
* docs/gst/tmpl/gstvalue.sgml:
update for recent API changes
* gst/gstcaps.c: (gst_caps_do_simplify):
fix to stop trying with a freed structure
* gst/gstpad.c: (gst_pad_link_fixate):
simplify caps
* gst/gstpad.c: (gst_pad_template_get_caps_by_name):
remove C++ comment
* gst/gstpad.h:
deprecate gst_pad_template_get_caps_by_name, it doesn't work anyway
* gst/gststructure.c: (gst_structure_value_get_generic_type),
(gst_structure_to_string):
keep the correct type when using lists of ranges
* gst/gstvalue.c: (gst_value_list_prepend_value),
(gst_value_list_append_value):
copy the value before adding to the list (d'oh)
* gst/gstvalue.c: (gst_value_subtract_int_range_int),
(gst_value_subtract_int_range_int_range):
handle overflows correctly
* gst/gstvalue.c: (gst_value_subtract_from_list):
fix memleak
* testsuite/caps/caps.h:
add a caps that caused segfaults
2004-04-22 16:39:23 +00:00
Benjamin Otte a6c11fb9f8 testsuite/refcounting/pad.c: fix test
Original commit message from CVS:
* testsuite/refcounting/pad.c: (main):
fix test
2004-04-22 05:08:19 +00:00
Benjamin Otte d65cd5dc7d gst/gstcaps.c: allow subtracting ANY and EMPTY from ANY caps
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_subtract):
allow subtracting ANY and EMPTY from ANY caps
2004-04-22 04:41:19 +00:00
Benjamin Otte ef64b87987 gst/gstcaps.c: only simplify in functions that create new caps. Simplifying in gst_caps_append breaks tests.
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_append), (gst_caps_intersect),
(gst_caps_union):
only simplify in functions that create new caps. Simplifying in
gst_caps_append breaks tests.
2004-04-22 04:29:18 +00:00
Benjamin Otte a79d06fe59 gst/gstcaps.c: unset GValue after use
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_structure_simplify):
unset GValue after use
* gst/gstcaps.c: (gst_caps_append),
* gst/gstpad.c: (gst_pad_link_fixate), (gst_pad_template_new):
use gst_caps_simplify (reduces registry size by 30%)
* gst/gstpad.c: (gst_pad_template_new):
don't allow NULL caps
2004-04-22 03:34:43 +00:00
Benjamin Otte 03a9d6a747 docs/gst/gstreamer-sections.txt: add gst_caps_do_simplify
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
add gst_caps_do_simplify
* gst/gstcaps.c:
add documentation for gst_caps_do_simplify
* gst/gstvalue.h:
fix typo in gst_value_register_subtract_func declaration for gst-doc
2004-04-22 02:43:57 +00:00
Benjamin Otte d7c64c071b gst/gstcaps.c: fix bug when converting from empty string.
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_from_string_inplace):
fix bug when converting from empty string.
* gst/gstcaps.c: (gst_caps_new_any), (gst_caps_new_simple),
(gst_caps_new_full_valist), (gst_caps_copy), (gst_caps_copy_1):
use gst_caps_new_empty to allocate a new caps. Only that function
allocates memory for caps now.
* gst/gstcaps.c: (gst_caps_remove_and_get_structure),
(gst_caps_remove_structure):
add ability to remove one structure (but not to header yet)
* gst/gstcaps.c: (gst_caps_compare_structures),
(gst_caps_simplify), (gst_caps_structure_figure_out_union),
(gst_caps_structure_simplify), (gst_caps_do_simplify),
* gst/gstcaps.h:
add gst_caps_do_simplify that tries to simplify a caps in place.
Deprecate old gst_caps_simplify function.
* testsuite/caps/caps.h:
add caps.h containing a common set of caps to test against.
* testsuite/caps/sets.c: (check_caps), (main):
use it.
* testsuite/caps/.cvsignore:
* testsuite/caps/Makefile.am:
* testsuite/caps/simplify.c: (check_caps), (main):
add test to check correctness and efficency of caps simplification.
2004-04-22 02:35:13 +00:00
Benjamin Otte 15e8b2cfc7 gst/gstparse.c: Free the GString used in _gst_parse_escape()
Original commit message from CVS:
reviewed by Benjamin Otte  <otte@gnome.org>
* gst/gstparse.c: (_gst_parse_escape):
Free the GString used in _gst_parse_escape()
2004-04-21 22:56:59 +00:00
Benjamin Otte a3cb86522a gst/gstpad.c: refuse to link if the link is not possible
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_link_negotiate):
refuse to link if the link is not possible
* configure.ac:
* testsuite/Makefile.am:
* testsuite/negotiation/.cvsignore:
* testsuite/negotiation/Makefile.am:
* testsuite/negotiation/pad_link.c: (main):
add test that checks the above behaviour
2004-04-21 19:12:51 +00:00
Thomas Vander Stichele 4d0762842a adding API additions to docs
Original commit message from CVS:
adding API additions to docs
2004-04-21 15:15:12 +00:00
Thomas Vander Stichele 48e3fbd44f support nonregular files (#140734)
Original commit message from CVS:
support nonregular files (#140734)
2004-04-21 14:51:27 +00:00
Benjamin Otte 6d8c433fa8 gst/gstpad.c: add sophisticated error checking code to see if fixation functions did their fixation right
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_link_fixate):
add sophisticated error checking code to see if fixation functions
did their fixation right
2004-04-21 04:08:19 +00:00
Benjamin Otte 614b4d1627 gst/gstcaps.c: check for ANY caps before appending/unioning
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_append), (gst_caps_union):
check for ANY caps before appending/unioning
* gst/gstcaps.c: (gst_caps_is_subset),
(gst_caps_is_equal), (gst_caps_structure_subtract_field),
(gst_caps_structure_subtract), (gst_caps_subtract):
* gst/gstcaps.h:
add gst_caps_is_equal, gst_caps_is_subset and gst_caps_subtract to
the API. deprecate gst_caps_is_equal_fixed
* gst/gstpad.c: (gst_pad_try_set_caps):
* gst/gstqueue.c: (gst_queue_link):
s/gst_caps_is_equal_fixed/gst_caps_is_equal/
* gst/gststructure.c: (gst_structure_get_name_id):
* gst/gststructure.h:
add function gst_structure_get_name_id
* gst/gstvalue.c: (gst_value_subtract_int_int_range),
(gst_value_create_new_range), (gst_value_subtract_int_range_int),
(gst_value_subtract_int_range_int_range),
(gst_value_subtract_double_double_range),
(gst_value_subtract_double_range_double),
(gst_value_subtract_double_range_double_range),
(gst_value_subtract_from_list), (gst_value_subtract_list),
(gst_value_can_intersect), (gst_value_subtract),
(gst_value_can_subtract), (gst_value_register_subtract_func),
(_gst_value_initialize):
* gst/gstvalue.h:
add support for subtracting values from each other. Note that
subtracting means subtracting as in set theory. Required for caps
stuff above.
* testsuite/caps/.cvsignore:
* testsuite/caps/Makefile.am:
* testsuite/caps/erathostenes.c: (erathostenes), (main):
* testsuite/caps/sets.c: (check_caps), (main):
* testsuite/caps/subtract.c: (check_caps), (main):
add tests for subtraction and equality code.
2004-04-21 03:25:13 +00:00
David Schleef bdb8c10b5c gst/autoplug/Makefile.am: Fix some little buglets in last checkin.
Original commit message from CVS:
* gst/autoplug/Makefile.am:  Fix some little buglets in last checkin.
* gst/indexers/Makefile.am:
* gst/schedulers/Makefile.am:
* libs/gst/bytestream/Makefile.am:
* libs/gst/control/Makefile.am:
* libs/gst/getbits/Makefile.am:
2004-04-21 02:43:55 +00:00
David Schleef 828252e0f2 common/as-libtool.mak: Fine-tune DLL building.
Original commit message from CVS:
* common/as-libtool.mak: Fine-tune DLL building.
* configure.ac: Link plugins against libgstreamer.  Define plugindir
(like gst-plugins)
* examples/plugins/Makefile.am: remove plugindir
* gst/autoplug/Makefile.am: DLL building fixes
* gst/elements/Makefile.am: DLL building fixes.  Disable pipefilter on
Windows.
* gst/elements/gstelements.c: Conditionally disable pipefilter.
* gst/indexers/Makefile.am: DLL building fixes
* gst/schedulers/Makefile.am: DLL building fixes.
* libs/gst/bytestream/Makefile.am: DLL building fixes.
* libs/gst/control/Makefile.am: same
* libs/gst/getbits/Makefile.am: same
* testsuite/Makefile.am: New dlopen directory
* testsuite/dlopen/Makefile.am: Tests to check if libgstreamer works
when dlopened.
* testsuite/dlopen/dlopen_gst.c: (main): same
* testsuite/dlopen/loadgst.c: (do_test): same
2004-04-20 22:22:01 +00:00
Sebastien Cote 5453269a0e gst/parse/grammar.y: Apply patch from Sebastien Cote
Original commit message from CVS:
* gst/parse/grammar.y:  Apply patch from Sebastien Cote
<sc5@hermes.usherb.ca> to fix a memleak. (bug #140594)
2004-04-20 19:40:05 +00:00
Thomas Vander Stichele 2365399bd7 use GST_TIME_*
Original commit message from CVS:
use GST_TIME_*
2004-04-20 16:42:25 +00:00
Thomas Vander Stichele 5a322ed432 making _set_property warn on unknown properties use GST_TIME_FORMAT for timestamp/duration
Original commit message from CVS:

making _set_property warn on unknown properties
use GST_TIME_FORMAT for timestamp/duration
2004-04-20 16:25:41 +00:00
Benjamin Otte d138a1b78e gst/autoplug/gstspider.c: improve debugging messages
Original commit message from CVS:
* gst/autoplug/gstspider.c: (gst_spider_link_sometimes),
(gst_spider_identity_plug):
improve debugging messages
* gst/gstbin.c: (gst_bin_remove_func):
make sure the state_change function is only called with simple state
transitions
2004-04-20 16:17:20 +00:00
Thomas Vander Stichele bf291b3f72 fix po download fix buglet in docs makefile
Original commit message from CVS:
fix po download
fix buglet in docs makefile
2004-04-20 16:10:48 +00:00
Thomas Vander Stichele d53af96374 adding british translation
Original commit message from CVS:
adding british translation
2004-04-20 11:12:38 +00:00
Johan Dahlin a78d3beebf gst/gstpad.c (_invent_event): Clean up
Original commit message from CVS:
* gst/gstpad.c (_invent_event): Clean up
2004-04-20 09:43:34 +00:00
Benjamin Otte 5f524cd068 testsuite/caps/filtercaps.c: fix test to test things correctly (caps are complicated)
Original commit message from CVS:
* testsuite/caps/filtercaps.c: (main):
fix test to test things correctly (caps are complicated)
2004-04-20 03:07:12 +00:00
Benjamin Otte 781e79e043 testsuite/caps/: add test (that doesn't work right now, but should)
Original commit message from CVS:
* testsuite/caps/Makefile.am:
* testsuite/caps/filtercaps.c: (main):
add test (that doesn't work right now, but should)
2004-04-20 02:43:35 +00:00
David Schleef d10158fcb5 configure.ac: Add test for allowing unaligned access. Add define to put in gstconfig.h.
Original commit message from CVS:
* configure.ac: Add test for allowing unaligned access.  Add define
to put in gstconfig.h.
* docs/gst/gstreamer-sections.txt: New symbols
* docs/gst/tmpl/gstcompat.sgml: Check in changes made by gtkdoc
* docs/gst/tmpl/gstfilesrc.sgml:
* docs/gst/tmpl/gstparse.sgml:
* docs/gst/tmpl/gsttypes.sgml:
* docs/gst/tmpl/gstutils.sgml:
* docs/gst/tmpl/gstvalue.sgml:
* gst/gstconfig.h.in: Add GST_HAVE_UNALIGNED_ACCESS
* gst/gstutils.h: Add macros for unaligned memory access.  Useful
on most !i386/!powerpc architectures.  From Daniel Gazard
<daniel.gazard@free.fr>.  (bug #140156)
* po/af.po: Check in changes made by gettext.
* po/az.po:
* po/fr.po:
* po/nl.po:
* po/sr.po:
* po/sv.po:
2004-04-20 00:17:26 +00:00
Benjamin Otte d30991ae03 gst/schedulers/entryscheduler.c: refuse to yield when decoupled elements insist on doing that.
Original commit message from CVS:
* gst/schedulers/entryscheduler.c:
(gst_entry_scheduler_yield):
refuse to yield when decoupled elements insist on doing that.
At least it's better than crashing
2004-04-19 23:08:03 +00:00
David Schleef b7acf41b85 docs/libs/Makefile.am: Change sinclude to include
Original commit message from CVS:
* docs/libs/Makefile.am: Change sinclude to include
* docs/gst/Makefile.am: same
* pkgconfig/Makefile.am:  Remove GNU-ism from makefile target
2004-04-19 22:54:58 +00:00
Johan Dahlin 272eccde22 gst/parse/grammar.y (__gst_parse_chain_free): Don't do null checking here, do it before calling the function.
Original commit message from CVS:
* gst/parse/grammar.y (__gst_parse_chain_free): Don't do null
checking here, do it before calling the function.
Clean up, use for loops instead of while loops while iterating
over lists.
2004-04-19 17:40:24 +00:00
Thomas Vander Stichele 66d065963f adding ukrainian translation
Original commit message from CVS:
adding ukrainian translation
2004-04-19 13:48:06 +00:00
Johan Dahlin 2ce7ad3382 gst/autoplug/gstspider.c (gst_spider_request_new_pad): Fix typo in debug message.
Original commit message from CVS:
* gst/autoplug/gstspider.c (gst_spider_request_new_pad): Fix typo
in debug message.
(gst_spider_create_and_plug): Improve debug message.
General: Replace while loops which iterates over GLists with for
loops. Which are much cleaner, improves readability, especially
for gst_spider_identity_plug
2004-04-19 12:15:50 +00:00
Johan Dahlin 2821d8ff20 gst/gstpad.c (_invent_event): Fix parameters to warning macros, fixes bug 140477
Original commit message from CVS:
* gst/gstpad.c (_invent_event): Fix parameters to warning macros,
fixes bug 140477
2004-04-19 10:22:32 +00:00
Thomas Vander Stichele d2445452b5 adding turkish translation
Original commit message from CVS:
adding turkish translation
2004-04-18 19:06:56 +00:00
Ronald S. Bultje cb80127c21 docs/faq/troubleshooting.xml: Mention gst-register in the FAQ (fixes 139045).
Original commit message from CVS:
* docs/faq/troubleshooting.xml:
Mention gst-register in the FAQ (fixes 139045).
2004-04-18 18:37:15 +00:00
Thomas Vander Stichele 230a1836ad fix doc build
Original commit message from CVS:
fix doc build
2004-04-17 16:20:19 +00:00
Benjamin Otte bb7d6621fd gst/gstelement.c: simplify
Original commit message from CVS:
* gst/gstelement.c: (gst_element_dispose):
simplify
* gst/gstpad.c: (gst_pad_call_chain_function):
don't create loads of events due to bad macro usage
2004-04-17 03:26:46 +00:00
David Schleef ac0fd9c5bf gst/: (_gst_value_initialize): Create a new function gst_type_is_fixed() to indicate types that are fixed wrt caps or...
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_is_fixed_foreach):
* gst/gstpad.c: (_gst_pad_default_fixate_foreach):
* gst/gstvalue.c: (gst_value_serialize_buffer),
(gst_value_deserialize_buffer), (gst_type_is_fixed),
(_gst_value_initialize): Create a new function gst_type_is_fixed()
to indicate types that are fixed wrt caps or not.  Switching to
this function fixes (bug #140298).
* gst/gstvalue.h:
2004-04-17 02:21:54 +00:00
David Schleef 8e4a4d41ca common/m4/gst-arch.m4: Implmenent a whitelist and blacklist for GST_UNALIGNED_ACESS, since we essentially know which ...
Original commit message from CVS:
* common/m4/gst-arch.m4:  Implmenent a whitelist and blacklist
for GST_UNALIGNED_ACESS, since we essentially know which archs
are ok.
2004-04-16 23:53:19 +00:00
Benjamin Otte 7d681ed6f0 add bug-number that was fixed
Original commit message from CVS:
add bug-number that was fixed
2004-04-16 23:11:10 +00:00
Benjamin Otte 36af6c437d docs/gst/Makefile.am: ignore gst/parse directory when building docs
Original commit message from CVS:
* docs/gst/Makefile.am:
ignore gst/parse directory when building docs
2004-04-16 22:59:16 +00:00
Thomas Vander Stichele 7ad9aa8526 do error checking instead of segfaulting
Original commit message from CVS:
do error checking instead of segfaulting
2004-04-16 10:17:55 +00:00
Johan Dahlin 82d33969ed docs/gst/gstreamer-sections.txt: Add gst_pad_call_chain_function and gst_pad_call_get_function.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt: Add gst_pad_call_chain_function
and gst_pad_call_get_function.
2004-04-16 09:07:39 +00:00
David Schleef 42d3780eea common/m4/gst-arch.m4: Add GST_UNALIGNED_ACCESS() macro that checks if we can access unaligned memory.
Original commit message from CVS:
* common/m4/gst-arch.m4: Add GST_UNALIGNED_ACCESS() macro that
checks if we can access unaligned memory.
* configure.ac: Use it.
2004-04-16 03:26:43 +00:00
Benjamin Otte 2713712906 gst/elements/gstfilesrc.*: s/seek_happened/need_discont/ and require discont before sending any data
Original commit message from CVS:
* gst/elements/gstfilesrc.c: (gst_filesrc_init), (gst_filesrc_get),
(gst_filesrc_change_state), (gst_filesrc_srcpad_event):
* gst/elements/gstfilesrc.h:
s/seek_happened/need_discont/ and require discont before sending any
data
2004-04-16 02:57:55 +00:00
David Schleef 06940084e5 gst/gstvalue.c: Register these types as fundamental types. (bug #140015)
Original commit message from CVS:
* gst/gstvalue.c: (gst_value_serialize_buffer),
(gst_value_deserialize_buffer), (_gst_value_initialize):
Register these types as fundamental types. (bug #140015)
2004-04-16 02:29:07 +00:00
Benjamin Otte 266cff34c7 gst/gstpad.c: implement enforcing discont events before buffers are passed. This allows state changes of only some el...
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_link_new),
(gst_pad_link_free), (gst_pad_link_try), (_invent_event),
(gst_pad_pull):
implement enforcing discont events before buffers are passed. This
allows state changes of only some elements and later correctly going
on where they left off (or in short: you can now set audio sinks to
NULL to release the device when the pipeline is paused)
* gst/gstpad.c: (gst_pad_call_chain_function),
(gst_pad_call_get_function):
* gst/gstpad.h:
add gst_pad_call_chain_function and gst_pad_call_get_function for
scheduler interaction. They are required because of the changes
above.
* gst/schedulers/entryscheduler.c: (get_buffer),
(gst_entry_scheduler_chain_wrapper),
(gst_entry_scheduler_get_wrapper),
(gst_entry_scheduler_state_transition),
(gst_entry_scheduler_pad_link):
* gst/schedulers/gstbasicscheduler.c:
(gst_basic_scheduler_chain_wrapper),
(gst_basic_scheduler_src_wrapper),
(gst_basic_scheduler_chainhandler_proxy),
(gst_basic_scheduler_gethandler_proxy),
(gst_basic_scheduler_cothreaded_chain),
(gst_basic_scheduler_chain_elements):
* gst/schedulers/gstoptimalscheduler.c:
(get_group_schedule_function), (pad_clear_queued),
(gst_opt_scheduler_pad_link):
use the new functions instead of calling get/chain-functions
directly.
2004-04-16 01:36:37 +00:00
David Schleef 66f00f1c78 docs/gst/gstreamer-sections.txt: Remove deprecated symbols.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt: Remove deprecated symbols.
* docs/gst/tmpl/gstinfo.sgml: same
* docs/gst/tmpl/gstutils.sgml: Remove a bunch of bogus crap that
gtk-doc put here.
* gst/gstutils.h: Remove the \ that was confusing gtk-doc.
* examples/queue/queue.c: (main):  We iterate pipelines, not
bins.  (bug #139996)
2004-04-16 01:34:05 +00:00
Ronald S. Bultje 56f7368c75 docs/pwg/advanced-types.xml: Add MS RLE support. Also document Qt RLE although I have no sample files for that yet. A...
Original commit message from CVS:
* docs/pwg/advanced-types.xml:
Add MS RLE support. Also document Qt RLE although I have no sample
files for that yet. And document an extra property for ADPCM.
2004-04-16 00:48:14 +00:00
David Schleef addcdee2d6 gst/gstplugin.c: Disable more stuff on
Original commit message from CVS:
* gst/gstplugin.c: (_gst_plugin_fault_handler_restore),
(_gst_plugin_fault_handler_setup):  Disable more stuff on
Windows.
2004-04-16 00:32:27 +00:00
David Schleef 1da0f13eb8 gst/gstinfo.c: Change some internal symbol names to not conflict with new gstinfo.h symbols.
Original commit message from CVS:
* gst/gstinfo.c: (_gst_debug_init): Change some internal
symbol names to not conflict with new gstinfo.h symbols.
* gst/gstinfo.h: Add inline functions for all those crazy
compilers that don't know how to handle variadic macros (MSVC).
2004-04-15 23:25:39 +00:00
Thomas Vander Stichele d80e0e09b1 back to cvs development
Original commit message from CVS:
back to cvs development
2004-04-15 11:31:41 +00:00
Thomas Vander Stichele 43f190df39 releasing
Original commit message from CVS:
releasing
2004-04-15 11:30:32 +00:00
David Schleef 3547072600 testsuite/Makefile.am: define tests_ignore
Original commit message from CVS:
* testsuite/Makefile.am: define tests_ignore
* testsuite/Rules: Added new tests_ignore, which get compiled,
but not run (generally because they're inconsistent or have
heisenbugs).  Now we can ensure all the .c files compile in
testsuite/.
* testsuite/bins/Makefile.am: define tests_ignore
* testsuite/bytestream/Makefile.am:
* testsuite/caps/Makefile.am:
* testsuite/clock/Makefile.am:
* testsuite/debug/Makefile.am:
* testsuite/debug/global.c: (gst_debug_log_one),
(gst_debug_log_two): Fix compilation problem.
* testsuite/dynparams/Makefile.am:
* testsuite/elements/Makefile.am:
* testsuite/ghostpads/Makefile.am:
* testsuite/indexers/Makefile.am:
* testsuite/parse/Makefile.am:
* testsuite/plugin/Makefile.am:
* testsuite/refcounting/Makefile.am:
* testsuite/refcounting/element_pad.c: (main): Don't return leak
results, because it's not calculated correctly.
* testsuite/refcounting/pad.c: (main): same
* testsuite/states/Makefile.am:
* testsuite/tags/Makefile.am:
* testsuite/threads/Makefile.am:
2004-04-15 04:54:53 +00:00
David Schleef 0622e9e391 gst/gstcpu.c: Add workaround for gcc-3.2 generating bad code around the cpu detection asm code.
Original commit message from CVS:
* gst/gstcpu.c: (gst_cpuid_i386): Add workaround for gcc-3.2
generating bad code around the cpu detection asm code.
2004-04-15 03:20:23 +00:00
Thomas Vander Stichele d46ea6f2d6 use release for releases
Original commit message from CVS:
use release for releases
2004-04-14 16:44:47 +00:00
Thomas Vander Stichele d4bfafcf63 print rank numerically as well
Original commit message from CVS:
print rank numerically as well
2004-04-14 16:14:39 +00:00
David Schleef 726bbbf7c6 configure.ac: Disable various code when compiling for MinGW.
Original commit message from CVS:
* configure.ac:  Disable various code when compiling for MinGW.
* gst/elements/Makefile.am:
* gst/elements/gstelements.c:
* gst/elements/gstfdsrc.c: (gst_fdsrc_get):
* gst/elements/gstfilesrc.c: (gst_filesrc_init), (gst_filesrc_get):
* gst/registries/gstxmlregistry.c: (make_dir):
2004-04-14 01:38:27 +00:00
David Schleef 26d7745271 gst/: Convert asm source into inline assembly.
Original commit message from CVS:
* gst/Makefile.am:
* gst/gstcpu.c: (gst_cpuid_i386): Convert asm source into inline
assembly.
* gst/gstcpuid_i386.s: remove
2004-04-14 01:24:41 +00:00
David Schleef 3803e830d3 docs/gst/tmpl/gstaggregator.sgml: Random checkin because gtk-doc seems to think it needs to be done.
Original commit message from CVS:
* docs/gst/tmpl/gstaggregator.sgml: Random checkin because gtk-doc
seems to think it needs to be done.
* docs/gst/tmpl/gstfakesink.sgml:
* docs/gst/tmpl/gstfakesrc.sgml:
* docs/gst/tmpl/gstfdsink.sgml:
* docs/gst/tmpl/gstfdsrc.sgml:
* docs/gst/tmpl/gstfilesink.sgml:
* docs/gst/tmpl/gstfilesrc.sgml:
* docs/gst/tmpl/gstidentity.sgml:
* docs/gst/tmpl/gstmd5sink.sgml:
* docs/gst/tmpl/gstmultifilesrc.sgml:
* docs/gst/tmpl/gstpipefilter.sgml:
* docs/gst/tmpl/gstshaper.sgml:
* docs/gst/tmpl/gstspider.sgml:
* docs/gst/tmpl/gstspideridentity.sgml:
* docs/gst/tmpl/gststatistics.sgml:
* docs/gst/tmpl/gsttee.sgml:
* docs/gst/tmpl/gsttypefind.sgml:
* docs/gst/tmpl/gstutils.sgml:
2004-04-13 23:15:51 +00:00
David Schleef f8c81337c5 configure.ac: Changes to remove POSIXisms (mmap in this case) and to build DLLs on Windows.
Original commit message from CVS:
* configure.ac: Changes to remove POSIXisms (mmap in this case)
and to build DLLs on Windows.
* gst/Makefile.am:
* gst/elements/gstfilesrc.c: (gst_filesrc_get),
(gst_filesrc_open_file):
* gst/schedulers/Makefile.am:
2004-04-13 22:18:36 +00:00
David Schleef b3a5ebd27c gst/gstcaps.c: Fix bug in fixating lists.
Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_structure_fixate_field_nearest_int),
(gst_caps_structure_fixate_field_nearest_double):  Fix bug in
fixating lists.
2004-04-13 20:50:53 +00:00
David Schleef 26663bbf1c gst/gstbuffer.c: (gst_buffer_free_chunk): Added gst_buffer_get_type() and changed to using it.
Original commit message from CVS:
* gst/gstbuffer.c: (_gst_buffer_initialize), (gst_buffer_get_type),
(gst_buffer_free_chunk): Added gst_buffer_get_type() and changed
to using it.
* gst/gstbuffer.h: Changed GST_BUFFER_TYPE to gst_buffer_get_type()
* gst/gstcaps.c: (gst_caps_is_fixed_foreach): Buffer is a fixed type
* gst/gstpad.c: (_gst_pad_default_fixate_foreach): same
* gst/gststructure.c: (gst_structure_set_valist),
(gst_structure_from_abbr), (gst_structure_to_abbr): Add vararg
support for buffers.
* gst/gsttag.c: (gst_tag_register): Constify a prototype that was
intended to be const.
* gst/gsttag.h: same
* gst/gstvalue.c: (gst_value_serialize_buffer),
(gst_value_deserialize_buffer), (_gst_value_initialize):  Add code
to (de)serialize buffers.
* testsuite/caps/Makefile.am:  Add a bit of buffer testing
* testsuite/caps/string-conversions.c: (main):
* testsuite/caps/value_serialize.c: add new test
2004-04-13 02:22:02 +00:00
Ronald S. Bultje 9262b2e68d docs/pwg/advanced-types.xml: Document MS video 1 (video/x-msvideocodec) mimetype/format.
Original commit message from CVS:
* docs/pwg/advanced-types.xml:
Document MS video 1 (video/x-msvideocodec) mimetype/format.
2004-04-11 21:38:14 +00:00
Benjamin Otte 9d756dd8e1 gst/schedulers/gstbasicscheduler.c: rename categories to basic_*
Original commit message from CVS:
* gst/schedulers/gstbasicscheduler.c: (plugin_init):
rename categories to basic_*
* gst/schedulers/gstbasicscheduler.c:
(gst_basic_scheduler_chain_wrapper),
(gst_basic_scheduler_chainhandler_proxy),
(gst_basic_scheduler_gethandler_proxy),
(gst_basic_scheduler_eventhandler_proxy):
debugging category fixes - put common stuff in log category
* gst/schedulers/gstbasicscheduler.c:
(gst_basic_scheduler_chain_elements):
dirty fix: call gst_basic_scheduler_cothreaded_chain when already
active and linking two active chains
2004-04-11 18:55:49 +00:00
Benjamin Otte 5a816667b3 docs/pwg/intro-preface.xml: fix dead links and remove reference to Wiki
Original commit message from CVS:
* docs/pwg/intro-preface.xml:
fix dead links and remove reference to Wiki
2004-04-10 08:49:56 +00:00
Benjamin Otte 5ec3dcdd5d gst/schedulers/gstbasicscheduler.c: make sure we can switch back to the main function if we're still in the main func...
Original commit message from CVS:
* gst/schedulers/gstbasicscheduler.c:
make sure we can switch back to the main function if we're still in
the main function (supposed to fix #139617)
* gst/schedulers/gthread-cothreads.h:
don't throw an error when switching to the same cothread
2004-04-09 22:43:06 +00:00
Benjamin Otte 3147797afb gst/: don't use memchunks for these objects, use malloc instead
Original commit message from CVS:
* gst/gstbin.c: (gst_bin_get_type):
* gst/gstclock.c: (gst_clock_get_type):
* gst/gstindex.c: (gst_index_get_type):
* gst/gstobject.c: (gst_object_get_type),
(gst_signal_object_get_type):
* gst/gstpad.c: (gst_pad_get_type), (gst_real_pad_get_type),
(gst_pad_template_get_type), (gst_ghost_pad_get_type):
* gst/gstpluginfeature.c: (gst_plugin_feature_get_type):
* gst/gstqueue.c: (gst_queue_get_type):
* gst/gstregistry.c: (gst_registry_get_type):
* gst/gstsystemclock.c: (gst_system_clock_get_type):
* gst/gstthread.c: (gst_thread_get_type):
don't use memchunks for these objects, use malloc instead
2004-04-09 19:05:03 +00:00
Thomas Vander Stichele c1125590b2 more doc build fixes
Original commit message from CVS:
more doc build fixes
2004-04-08 14:45:13 +00:00
Thomas Vander Stichele 5e7866d43a docs/gst/Makefile.am: make docs exit on scanning problems fix nonsrcdir build issues
Original commit message from CVS:
* docs/gst/Makefile.am:
make docs exit on scanning problems
fix nonsrcdir build issues
* docs/gst/gstreamer-sections.txt:
adding stuff from -unused
* gst/gstqueue.h:
create GstQueueSize
* gst/schedulers/cothreads_compat.h:
fix cothread warnings
2004-04-07 15:31:25 +00:00
Thomas Vander Stichele 140bdda010 remove Benjamin's deprecated macros from the docs
Original commit message from CVS:
remove Benjamin's deprecated macros from the docs
2004-04-07 11:01:46 +00:00
Benjamin Otte 6e56b1be99 gst/elements/gstbufferstore.c: when the buffer is complete, don't check if other buffers are needed
Original commit message from CVS:
* gst/elements/gstbufferstore.c: (gst_buffer_store_get_buffer):
when the buffer is complete, don't check if other buffers are needed
* gst/elements/gstfilesrc.c: (gst_filesrc_srcpad_event):
check that the offset is >0 so we don't try to read before the
beginning of the file
* gst/gstpad.c: (gst_pad_set_pad_template):
sink the template, so we don't end up with 130k pad templates
2004-04-06 23:46:37 +00:00
Benjamin Otte beb197fd35 gst/autoplug/gstspider.c: don't ref the element, adding already reffed it. And we didn't unref it later anyway... (hu...
Original commit message from CVS:
* gst/autoplug/gstspider.c: (gst_spider_link_add):
don't ref the element, adding already reffed it. And we didn't unref
it later anyway... (huge memleak when you used many spider elements)
* gst/gstelement.c: (gst_element_base_class_finalize):
* gst/gstelementfactory.c: (gst_element_factory_cleanup),
(gst_element_register):
* gst/gsturi.c: (gst_element_make_from_uri):
use gst_object_(un)ref instead of g_object(un)ref
2004-04-06 19:45:27 +00:00
Benjamin Otte b107a0a3ef gst/gstbuffer.h: remove macro that wouldn't work anymore because struct member has been removed.
Original commit message from CVS:
* gst/gstbuffer.h:
remove macro that wouldn't work anymore because struct member has
been removed.
* gst/schedulers/entryscheduler.c: (schedule_forward):
fix segfault for unconnected pads
2004-04-06 05:59:31 +00:00
Benjamin Otte a14e748c7b gst/gstinfo.h: *_FORMAT modifiers should require putting a % in front of them for consistency reasons.
Original commit message from CVS:
reviewed by David Schleef <ds@schleef.org>
* gst/gstinfo.h:
*_FORMAT modifiers should require putting a % in front of them for
consistency reasons.
2004-04-06 05:58:32 +00:00
Colin Walters c5bed46905 configure.ac (VALGRIND_CFLAGS, VALGRIND_LIBS): Remove spurious space.
Original commit message from CVS:
2004-04-05  Colin Walters  <walters@redhat.com>

* configure.ac (VALGRIND_CFLAGS, VALGRIND_LIBS): Remove spurious
space.
2004-04-05 22:04:20 +00:00
Benjamin Otte e0ab9b5740 add support for detecting if GStreamer runs inside valgrind.
Original commit message from CVS:
* configure.ac:
* gst/Makefile.am:
* gst/gst_private.h:
* gst/gstinfo.c: (__gst_in_valgrind), (_gst_debug_init):
add support for detecting if GStreamer runs inside valgrind.
requires valgrind (d'oh) and --enable-debug for correct cdetection.
print a big message in valgrind that GStreamer has detected it's
running inside and might now use different code.
* gst/gstmemchunk.c: (populate), (free_area),
(gst_mem_chunk_destroy), (gst_mem_chunk_alloc),
(gst_mem_chunk_free):
flag memchunks for valgrind, so it can detect leaking of chunks.
This allows detecting leaks of GstBuffer and GstEvent correctly
inside valgrind.
2004-04-05 21:42:07 +00:00
David Schleef cce13e8e5c gst/gsttrace.h: Fix #ifdef nesting (bug #139109) Patch from jensgr@gmx.net (Jens Granseuer)
Original commit message from CVS:
* gst/gsttrace.h:  Fix #ifdef nesting (bug #139109) Patch from
jensgr@gmx.net (Jens Granseuer)
2004-04-05 19:02:39 +00:00
David Schleef f63e0209bf gst/gstbuffer.c: Allocate GstBuffer structures in one place.
Original commit message from CVS:
* gst/gstbuffer.c: (_gst_buffer_sub_free),
(gst_buffer_default_free), (gst_buffer_default_copy),
(gst_buffer_alloc_chunk), (gst_buffer_free_chunk),
(gst_buffer_new), (gst_buffer_create_sub):  Allocate GstBuffer
structures in one place.
2004-04-05 18:39:01 +00:00
Thomas Vander Stichele d1f07374c3 adding Ronald's timestamp debug defines
Original commit message from CVS:
adding Ronald's timestamp debug defines
2004-04-05 13:34:33 +00:00
Thomas Vander Stichele cb6fca85bf disable test until it stops breaking distcheck
Original commit message from CVS:
disable test until it stops breaking distcheck
2004-04-05 10:25:55 +00:00
Johan Dahlin 49fb5c34ac po/sv.po: Updated translation
Original commit message from CVS:
* po/sv.po: Updated translation
2004-04-05 10:12:55 +00:00
Thomas Vander Stichele ac726511ce fix segfault for static plugins
Original commit message from CVS:
fix segfault for static plugins
2004-04-05 10:03:36 +00:00
Benjamin Otte e25612f443 testsuite/debug/: fix tests to work again with debugging enabled
Original commit message from CVS:
* testsuite/debug/category.c: (main):
* testsuite/debug/commandline.c: (main):
* testsuite/debug/output.c: (main):
fix tests to work again with debugging enabled
2004-04-05 04:31:00 +00:00
Benjamin Otte 563ce1b133 gst/schedulers/gstbasicscheduler.c: fix to work with recent scheduling changes
Original commit message from CVS:
* gst/schedulers/gstbasicscheduler.c:
(gst_basic_scheduler_pad_link):
fix to work with recent scheduling changes
2004-04-05 02:30:20 +00:00
Benjamin Otte 9f11d29481 gst/schedulers/entryscheduler.c: (some functions, dunno which, prepareChangeLog doesn't work when cvs indents): don't...
Original commit message from CVS:
* gst/schedulers/entryscheduler.c: (some functions, dunno which,
prepareChangeLog doesn't work when cvs indents):
don't throw an error when no element can be scheduled, there's too
many weird reasons why it doesn't work. Return STOPPED instead.
decoupled elemts' schedulability doesn't depend on bufpens.
2004-04-04 23:21:09 +00:00
Benjamin Otte fd58f301b7 gst/schedulers/gstbasicscheduler.c: fix uninitialized variable warnings
Original commit message from CVS:
* gst/schedulers/gstbasicscheduler.c:
(gst_basic_scheduler_pad_select):
fix uninitialized variable warnings
2004-04-04 03:11:46 +00:00
Benjamin Otte dad31c5578 gst/gstpad.c: fix uninitialized variable warning
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_collect_valist):
fix uninitialized variable warning
* gst/schedulers/entryscheduler.c: (schedule_forward):
fix shadowed variable
2004-04-04 03:02:43 +00:00
Benjamin Otte ac5674b03b gst/: implement gst_pad_collect as replacement for gst_pad_select.
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_collect_array), (gst_pad_collectv),
(gst_pad_collect), (gst_pad_collect_valist), (gst_pad_selectv),
(gst_pad_select):
* gst/gstpad.h:
* gst/gstscheduler.c: (gst_scheduler_pad_select),
(gst_scheduler_lock_element), (gst_scheduler_unlock_element):
* gst/gstscheduler.h:
implement gst_pad_collect as replacement for gst_pad_select.
deprecate gst_pad_select and gst_scheduler_(un)lock_element
add new flag GST_SCHEDULER_FLAG_NEW_API for API that implements the
new pad_select, lock and unlock calls.
* gst/cothreads.c: (cothread_destroy), (cothread_switch):
* gst/cothreads.h:
* gst/schedulers/cothreads_compat.h:
* gst/schedulers/gthread-cothreads.h:
remove unused cothread_lock and cothread_unlock calls
* gst/schedulers/entryscheduler.c:
(gst_entry_scheduler_class_init), (gst_entry_scheduler_init),
(_can_schedule_loop), (gst_entry_scheduler_get_handler),
(gst_entry_scheduler_pad_select):
update to new API
* gst/schedulers/gstbasicscheduler.c:
(gst_basic_scheduler_class_init), (gst_basic_scheduler_init),
(gst_basic_scheduler_pad_select):
remove useless lock and unlock calls, update pad_select to new API
(untested)
* gst/schedulers/gstoptimalscheduler.c:
(gst_opt_scheduler_class_init):
remove useless select, lock and unlock function calls
* gst/elements/gstaggregator.c: (gst_aggregator_loop):
use gst_pad_collect instead of gst_pad_select
2004-04-04 02:36:12 +00:00
Benjamin Otte 343d14cf0e gst/schedulers/entryscheduler.c: add can_schedule_pad to handle element states.
Original commit message from CVS:
* gst/schedulers/entryscheduler.c: (_can_schedule_get),
(can_schedule_pad), (can_schedule), (schedule), (schedule_forward),
(schedule_next_element), (print_entry):
add can_schedule_pad to handle element states.
add schedule_forward to select the correct entry to schedule next
2004-04-04 00:24:30 +00:00
Benjamin Otte e5ea553496 gst/schedulers/entryscheduler.c: remove unused variable, fix error inside Rb, fix compile warning in unreachable code
Original commit message from CVS:
* gst/schedulers/entryscheduler.c:
remove unused variable, fix error inside Rb, fix compile warning in
unreachable code
2004-04-03 20:52:02 +00:00
Benjamin Otte d5ef66d230 gst/schedulers/entryscheduler.c: completely revamp the inner workings, so it's a lot easier to understand and extend
Original commit message from CVS:
* gst/schedulers/entryscheduler.c:
completely revamp the inner workings, so it's a lot easier to
understand and extend
2004-04-03 19:32:12 +00:00