platform/upstream/gstreamer.git
18 years agolibs/gst/controller/gstcontroller.c: Fix controlling of float properties (#344849).
Wouter Paesen [Wed, 14 Jun 2006 08:26:53 +0000 (08:26 +0000)]
libs/gst/controller/gstcontroller.c: Fix controlling of float properties (#344849).

Original commit message from CVS:
Patch by: Wouter Paesen  <wouter at kangaroot net>
* libs/gst/controller/gstcontroller.c:
(gst_controlled_property_new):
Fix controlling of float properties (#344849).
* tests/check/libs/controller.c:
(gst_test_mono_source_get_property),
(gst_test_mono_source_set_property),
(gst_test_mono_source_class_init), (GST_START_TEST):
While we're at it, add some float stuff to unit test.

18 years agodocs/: add a gdp image
Thomas Vander Stichele [Tue, 13 Jun 2006 19:24:34 +0000 (19:24 +0000)]
docs/: add a gdp image

Original commit message from CVS:

* docs/README:
* docs/images/gdp-header.svg:
add a gdp image
* docs/libs/Makefile.am:
* docs/libs/gdp-header.png:
* libs/gst/dataprotocol/dataprotocol.c:
add it to the API docs
* docs/manual/intro-motivation.xml:
fix typo

18 years agogst/gst.c: If the fork()'ed child process can't write the updated registry cache...
Tim-Philipp Müller [Tue, 13 Jun 2006 16:41:37 +0000 (16:41 +0000)]
gst/gst.c: If the fork()'ed child process can't write the updated registry cache file to disk for some reason, make i...

Original commit message from CVS:
* gst/gst.c: (scan_and_update_registry), (init_post):
If the fork()'ed child process can't write the updated registry cache
file to disk for some reason, make it exit with a failure exit code,
so that the parent can then re-scan the plugins itself and update the
registry structures in memory and work with that (rather than failing
when creating elements because seemingly no plugins are available).
Refactor registry scanning code into separate function for this and
also separate fork() and non-fork() code paths. Fixes #344748.

18 years agodocs/manual/advanced-dataaccess.xml: Fix wrong PluginDesc. Fixes #344755.
Wim Taymans [Tue, 13 Jun 2006 16:24:43 +0000 (16:24 +0000)]
docs/manual/advanced-dataaccess.xml: Fix wrong PluginDesc. Fixes #344755.

Original commit message from CVS:
* docs/manual/advanced-dataaccess.xml:
Fix wrong PluginDesc. Fixes #344755.

18 years agogst/gstregistryxml.c: Fix silly bug that prevented us from creating ~/.gstreamer...
Tim-Philipp Müller [Tue, 13 Jun 2006 13:30:46 +0000 (13:30 +0000)]
gst/gstregistryxml.c: Fix silly bug that prevented us from creating ~/.gstreamer-0.10 and writing the registry in one...

Original commit message from CVS:
* gst/gstregistryxml.c: (gst_registry_xml_write_cache):
Fix silly bug that prevented us from creating
~/.gstreamer-0.10 and writing the registry in one
go (the first call to g_mkstemp() would overwrite the
placeholder in the template string, so the second call
to g_mkstemp() after creating the missing directory
would then error out with 'invalid argument').

18 years agogst/gst.c: Free string.
Edward Hervey [Tue, 13 Jun 2006 11:17:02 +0000 (11:17 +0000)]
gst/gst.c: Free string.

Original commit message from CVS:
* gst/gst.c: (init_post):
Free string.

18 years agogst/: remove GLib 2.6 compatibility code
Thomas Vander Stichele [Tue, 13 Jun 2006 08:20:24 +0000 (08:20 +0000)]
gst/: remove GLib 2.6 compatibility code

Original commit message from CVS:

* gst/glib-compat-private.h:
* gst/glib-compat.c:
* gst/glib-compat.h:
* gst/gstvalue.c: (gst_value_serialize_flags):
remove GLib 2.6 compatibility code

18 years agogst/parse/Makefile.am: Fix build with 'make -j N' even more (#340016).
Tim-Philipp Müller [Mon, 12 Jun 2006 16:50:09 +0000 (16:50 +0000)]
gst/parse/Makefile.am: Fix build with 'make -j N' even more (#340016).

Original commit message from CVS:
* gst/parse/Makefile.am:
Fix build with 'make -j N' even more (#340016).

18 years agodocs/gst/gstreamer-sections.txt: Fix docs.
Wim Taymans [Mon, 12 Jun 2006 09:37:58 +0000 (09:37 +0000)]
docs/gst/gstreamer-sections.txt: Fix docs.

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

18 years agogst/gstsegment.c: Use G_UNLIKELY to help the compiler a bit.
Wim Taymans [Mon, 12 Jun 2006 09:29:49 +0000 (09:29 +0000)]
gst/gstsegment.c: Use G_UNLIKELY to help the compiler a bit.

Original commit message from CVS:
* gst/gstsegment.c: (gst_segment_set_duration),
(gst_segment_set_last_stop), (gst_segment_set_seek),
(gst_segment_set_newsegment_full), (gst_segment_to_stream_time),
(gst_segment_to_running_time), (gst_segment_clip):
Use G_UNLIKELY to help the compiler a bit.

18 years agogst/: constify quark registration strings. Fixes #344115
Stefan Kost [Mon, 12 Jun 2006 09:28:35 +0000 (09:28 +0000)]
gst/: constify quark registration strings. Fixes #344115

Original commit message from CVS:
Patch by: Stefan Kost <ensonic at sonicpulse dot de>
* gst/gstevent.c: (gst_event_get_type):
* gst/gstmessage.c:
* gst/gstpad.c: (gst_pad_chain_unchecked), (gst_pad_chain),
(gst_pad_push):
constify quark registration strings. Fixes #344115
Avoid unneeded type checking is _pad_push() by internally
calling gst_pad_chain_unchecked().

18 years agogst/gstbuffer.c: Init _type for consistency.
Wim Taymans [Mon, 12 Jun 2006 09:23:43 +0000 (09:23 +0000)]
gst/gstbuffer.c: Init _type for consistency.

Original commit message from CVS:
* gst/gstbuffer.c: (gst_buffer_get_type), (gst_buffer_finalize),
(_gst_buffer_copy), (gst_buffer_is_metadata_writable),
(gst_subbuffer_finalize), (gst_buffer_create_sub),
(gst_buffer_is_span_fast), (gst_buffer_span):
Init _type for consistency.
Use _FLAGS macro to avoid type check.
Avoid unneeded type checks in subbufer code.

18 years agogst/: Use _CAST macros to avoid unneeded type checking.
Wim Taymans [Mon, 12 Jun 2006 09:17:44 +0000 (09:17 +0000)]
gst/: Use _CAST macros to avoid unneeded type checking.

Original commit message from CVS:
* gst/gst.c: (gst_debug_help):
* gst/gstplugin.c: (gst_plugin_finalize), (gst_plugin_list_free):
* gst/gstpluginfeature.c: (gst_plugin_feature_finalize),
(gst_plugin_feature_list_free):
* gst/gstregistry.c: (gst_registry_add_plugin),
(gst_registry_add_feature), (gst_registry_plugin_filter),
(gst_registry_feature_filter), (gst_registry_find_plugin),
(gst_registry_find_feature), (gst_registry_get_plugin_list),
(gst_registry_lookup_feature_locked), (gst_registry_lookup_locked):
* gst/gstregistryxml.c: (load_feature),
(gst_registry_xml_read_cache), (gst_registry_xml_write_cache):
* gst/gstminiobject.c: (gst_mini_object_unref),
(gst_mini_object_replace), (gst_value_mini_object_free),
(gst_value_mini_object_copy):
Use _CAST macros to avoid unneeded type checking.
Added some more G_UNLIKELY.

18 years agogst/gstbuffer.h: Avoid unneeded type checking.
Wim Taymans [Mon, 12 Jun 2006 09:11:44 +0000 (09:11 +0000)]
gst/gstbuffer.h: Avoid unneeded type checking.

Original commit message from CVS:
* gst/gstbuffer.h:
Avoid unneeded type checking.
API: GST_BUFFER_IS_DISCONT
* gst/gstminiobject.h:
Avoid type check in flag accessor.
* gst/gstelementfactory.h:
* gst/gstplugin.h:
* gst/gstpluginfeature.h:
Add _CAST macros.
API: GST_ELEMENT_FACTORY_CAST
API: GST_PLUGIN_CAST
API: GST_PLUGIN_FEATURE_CAST

18 years agogst/gstobject.c: Add G_UNLIKELY in type registration.
Wim Taymans [Mon, 12 Jun 2006 09:06:01 +0000 (09:06 +0000)]
gst/gstobject.c: Add G_UNLIKELY in type registration.

Original commit message from CVS:
* gst/gstobject.c: (gst_object_get_type), (gst_object_ref),
(gst_object_unref):
Add G_UNLIKELY in type registration.
Avoid type check in _ref/_unref since that is also
done in glib.

18 years agoAdd G_UNLIKELY in type registration.
Wim Taymans [Mon, 12 Jun 2006 08:55:21 +0000 (08:55 +0000)]
Add G_UNLIKELY in type registration.

Original commit message from CVS:
* gst/gsterror.c: (gst_g_error_get_type):
* gst/gstpadtemplate.c: (gst_pad_template_get_type),
(gst_static_pad_template_get_type):
* gst/gsttaglist.c: (gst_tag_list_get_type):
* gst/gsttagsetter.c: (gst_tag_setter_get_type):
* gst/gsttypefindfactory.c: (gst_type_find_factory_get_type):
* gst/gsturi.c: (gst_uri_handler_get_type):
* gst/gstvalue.c: (gst_date_get_type):
* gst/gstxml.c: (gst_xml_get_type):
* libs/gst/base/gstbasesink.c: (gst_base_sink_get_type),
(gst_base_sink_preroll_object), (gst_base_sink_get_position):
* libs/gst/base/gstbasesrc.c: (gst_base_src_get_type):
Add G_UNLIKELY in type registration.

18 years agotools/gst-inspect.c: Properly print enum values.
Wim Taymans [Mon, 12 Jun 2006 08:51:20 +0000 (08:51 +0000)]
tools/gst-inspect.c: Properly print enum values.

Original commit message from CVS:
* tools/gst-inspect.c: (print_signal_info):
Properly print enum values.

18 years agogst/gstinfo.*: Add some G_[UN]LIKELY.
Wim Taymans [Mon, 12 Jun 2006 08:47:16 +0000 (08:47 +0000)]
gst/gstinfo.*: Add some G_[UN]LIKELY.

Original commit message from CVS:
* gst/gstinfo.c: (gst_debug_set_active),
(gst_debug_category_set_threshold), (_gst_debug_nameof_funcptr):
* gst/gstinfo.h:
Add some G_[UN]LIKELY.
Maintain __gst_debug_min to avoid formatting the arguments of
debug messages that will be dropped anyway to avoid a lot of
overhead from the debugging system.

18 years agopo/POTFILES.*: add missing files containing translatable strings, tell intltool about...
Stefan Kost [Sun, 11 Jun 2006 20:37:41 +0000 (20:37 +0000)]
po/POTFILES.*: add missing files containing translatable strings, tell intltool about one exception

Original commit message from CVS:
* po/POTFILES.in:
* po/POTFILES.skip:
add missing files containing translatable strings, tell intltool about
one exception

18 years agotests/check/libs/.cvsignore: add test-binary to ignore list
Stefan Kost [Sun, 11 Jun 2006 17:28:19 +0000 (17:28 +0000)]
tests/check/libs/.cvsignore: add test-binary to ignore list

Original commit message from CVS:
* tests/check/libs/.cvsignore:
add test-binary to ignore list

18 years agodocs/libs/gstreamer-libs-docs.sgml: reorder (put dp into a chapter) and indent
Stefan Kost [Sun, 11 Jun 2006 17:03:06 +0000 (17:03 +0000)]
docs/libs/gstreamer-libs-docs.sgml: reorder (put dp into a chapter) and indent

Original commit message from CVS:
* docs/libs/gstreamer-libs-docs.sgml:
reorder (put dp into a chapter) and indent

18 years agoadd notes on our autotools setup
Thomas Vander Stichele [Sun, 11 Jun 2006 11:56:36 +0000 (11:56 +0000)]
add notes on our autotools setup

Original commit message from CVS:
add notes on our autotools setup

18 years agoback to HEAD
Thomas Vander Stichele [Sat, 10 Jun 2006 17:32:53 +0000 (17:32 +0000)]
back to HEAD

Original commit message from CVS:
back to HEAD

18 years agoreleasing 0.10.8 RELEASE-0_10_8
Thomas Vander Stichele [Sat, 10 Jun 2006 17:06:33 +0000 (17:06 +0000)]
releasing 0.10.8

Original commit message from CVS:
releasing 0.10.8

18 years agogst/gst.c: move pid declaration to declaration block
Thomas Vander Stichele [Sat, 10 Jun 2006 11:51:58 +0000 (11:51 +0000)]
gst/gst.c: move pid declaration to declaration block

Original commit message from CVS:
* gst/gst.c: (init_post):
move pid declaration to declaration block

18 years agogst/gst.c: use _exit() instead of exit() in our forked child; this ensures that none...
Thomas Vander Stichele [Sat, 10 Jun 2006 11:47:42 +0000 (11:47 +0000)]
gst/gst.c: use _exit() instead of exit() in our forked child; this ensures that none of the registered exit handlers ...

Original commit message from CVS:
* gst/gst.c: (init_post):
use _exit() instead of exit() in our forked child; this ensures
that none of the registered exit handlers from whatever is using
GStreamer get executed.  This fixes gnome-mixer-applet failing
to load, because ORBit would shut down.
Spotted by: Edward Hervey  <edward@fluendo.com>
Fix suggested by: Tim-Philipp Müller  <tim at centricular dot net>
Fixes #344474

18 years agoconfigure.ac: back to TRUNK
Thomas Vander Stichele [Fri, 9 Jun 2006 18:52:02 +0000 (18:52 +0000)]
configure.ac: back to TRUNK

Original commit message from CVS:
2006-06-09  Thomas Vander Stichele  <thomas at apestaart dot org>

* configure.ac:
back to TRUNK

18 years agoreleasing 0.10.7 RELEASE-0_10_7
Thomas Vander Stichele [Fri, 9 Jun 2006 18:49:25 +0000 (18:49 +0000)]
releasing 0.10.7

Original commit message from CVS:
releasing 0.10.7

18 years ago0.10.6.2 prerelease
Thomas Vander Stichele [Wed, 7 Jun 2006 10:46:04 +0000 (10:46 +0000)]
0.10.6.2 prerelease

Original commit message from CVS:
* configure.ac:
* po/af.po:
* po/az.po:
* po/bg.po:
* po/ca.po:
* po/cs.po:
* po/de.po:
* po/en_GB.po:
* po/fr.po:
* po/it.po:
* po/nb.po:
* po/nl.po:
* po/ru.po:
* po/sq.po:
* po/sr.po:
* po/sv.po:
* po/tr.po:
* po/uk.po:
* po/vi.po:
* po/zh_CN.po:
* po/zh_TW.po:
* win32/common/config.h:
0.10.6.2 prerelease

18 years agoFix leak spotted by coverity checker. Fixes #343827
Wim Taymans [Wed, 7 Jun 2006 08:38:30 +0000 (08:38 +0000)]
Fix leak spotted by coverity checker. Fixes #343827

Original commit message from CVS:
* gst/gstindex.c: (gst_index_gtype_resolver):
* tools/gst-xmlinspect.c: (print_plugin_info):
Fix leak spotted by coverity checker. Fixes #343827
Fix another other leak found by paolo borelli.

18 years agoifdef LOADSAVE
Thomas Vander Stichele [Tue, 6 Jun 2006 16:52:59 +0000 (16:52 +0000)]
ifdef LOADSAVE

Original commit message from CVS:
ifdef LOADSAVE

18 years agoremove old docs
Thomas Vander Stichele [Tue, 6 Jun 2006 15:18:26 +0000 (15:18 +0000)]
remove old docs

Original commit message from CVS:
remove old docs

18 years agoterminate ifdef
Thomas Vander Stichele [Tue, 6 Jun 2006 14:51:45 +0000 (14:51 +0000)]
terminate ifdef

Original commit message from CVS:
terminate ifdef

18 years agoremove unused tmpl
Thomas Vander Stichele [Tue, 6 Jun 2006 14:32:55 +0000 (14:32 +0000)]
remove unused tmpl

Original commit message from CVS:
remove unused tmpl

18 years agoadd note to docs about GDP versioning; remove tmpl file
Thomas Vander Stichele [Tue, 6 Jun 2006 14:29:54 +0000 (14:29 +0000)]
add note to docs about GDP versioning; remove tmpl file

Original commit message from CVS:
add note to docs about GDP versioning; remove tmpl file

18 years agolibs/gst/dataprotocol/dataprotocol.*: API: add a GstDPPacketizer object, and create...
Thomas Vander Stichele [Tue, 6 Jun 2006 14:24:00 +0000 (14:24 +0000)]
libs/gst/dataprotocol/dataprotocol.*: API: add a GstDPPacketizer object, and create/free functions

Original commit message from CVS:
* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_header_from_buffer_any), (gst_dp_packet_from_caps_any),
(gst_dp_version_get_type), (gst_dp_init),
(gst_dp_header_from_buffer), (gst_dp_header_from_buffer_1_0),
(gst_dp_packet_from_caps), (gst_dp_packet_from_caps_1_0),
(gst_dp_packet_from_event), (gst_dp_packet_from_event_1_0),
(gst_dp_event_from_packet_0_2), (gst_dp_event_from_packet_1_0),
(gst_dp_event_from_packet), (gst_dp_packetizer_new),
(gst_dp_packetizer_free):
* libs/gst/dataprotocol/dataprotocol.h:
API: add a GstDPPacketizer object, and create/free functions
API: add GstDPVersion enum
Add 1.0 event function that uses the string serialization
Serialize more useful buffer flags
Fixes #343988

18 years agoadd symbol
Thomas Vander Stichele [Tue, 6 Jun 2006 14:21:10 +0000 (14:21 +0000)]
add symbol

Original commit message from CVS:
add symbol

18 years agowidth respectationizing
Thomas Vander Stichele [Tue, 6 Jun 2006 14:16:33 +0000 (14:16 +0000)]
width respectationizing

Original commit message from CVS:
width respectationizing

18 years agotests/check/: add ppc64 structure sizes
Thomas Vander Stichele [Tue, 6 Jun 2006 14:10:09 +0000 (14:10 +0000)]
tests/check/: add ppc64 structure sizes

Original commit message from CVS:
* tests/check/Makefile.am:
* tests/check/gst/gstabi.c:
* tests/check/gst/struct_ppc64.h:
* tests/check/libs/libsabi.c:
* tests/check/libs/struct_ppc64.h:
add ppc64 structure sizes

18 years agotests/check/: generate and add structure size lists for x86_64
Thomas Vander Stichele [Tue, 6 Jun 2006 13:59:10 +0000 (13:59 +0000)]
tests/check/: generate and add structure size lists for x86_64

Original commit message from CVS:
* tests/check/Makefile.am:
* tests/check/gst/gstabi.c:
* tests/check/gst/struct_x86_64.h:
* tests/check/libs/libsabi.c:
* tests/check/libs/struct_x86_64.h:
generate and add structure size lists for x86_64

18 years agocosmetics
Thomas Vander Stichele [Tue, 6 Jun 2006 13:53:25 +0000 (13:53 +0000)]
cosmetics

Original commit message from CVS:
cosmetics

18 years agolibs/gst/check/gstcheck.*: factor out the method from tests that checks size of struc...
Thomas Vander Stichele [Tue, 6 Jun 2006 13:48:20 +0000 (13:48 +0000)]
libs/gst/check/gstcheck.*: factor out the method from tests that checks size of structures, and add code to generate ...

Original commit message from CVS:
* libs/gst/check/gstcheck.c: (gst_check_abi_list):
* libs/gst/check/gstcheck.h:
factor out the method from tests that checks size of structures,
and add code to generate the header containing these sizes
* tests/check/gst/gstabi.c: (GST_START_TEST):
* tests/check/gst/struct_i386.h:
* tests/check/libs/libsabi.c: (GST_START_TEST):
* tests/check/libs/struct_i386.h:
use it

18 years agogst/gstsegment.h: Don't use c++-style comments, fixes #343929
Michael Smith [Tue, 6 Jun 2006 13:11:03 +0000 (13:11 +0000)]
gst/gstsegment.h: Don't use c++-style comments, fixes #343929

Original commit message from CVS:
* gst/gstsegment.h:
Don't use c++-style comments, fixes #343929

18 years agowhitespace/width fixes
Thomas Vander Stichele [Tue, 6 Jun 2006 09:47:40 +0000 (09:47 +0000)]
whitespace/width fixes

Original commit message from CVS:
whitespace/width fixes

18 years agowhitespace fixes
Thomas Vander Stichele [Tue, 6 Jun 2006 08:50:40 +0000 (08:50 +0000)]
whitespace fixes

Original commit message from CVS:
whitespace fixes

18 years agoremove an extra space
Thomas Vander Stichele [Tue, 6 Jun 2006 08:50:25 +0000 (08:50 +0000)]
remove an extra space

Original commit message from CVS:
remove an extra space

18 years agogst/gst.c: plugin_paths is not used if we build without registry support.
Edward Hervey [Mon, 5 Jun 2006 13:05:37 +0000 (13:05 +0000)]
gst/gst.c: plugin_paths is not used if we build without registry support.

Original commit message from CVS:
* gst/gst.c:
plugin_paths is not used if we build without registry support.
* gst/gstsegment.c: (gst_segment_copy):
_copy() was always returning NULL...

18 years agogst/gstsegment.c: _copy() was always returning NULL...
Edward Hervey [Mon, 5 Jun 2006 12:55:58 +0000 (12:55 +0000)]
gst/gstsegment.c: _copy() was always returning NULL...

Original commit message from CVS:
* gst/gstsegment.c: (gst_segment_copy):
_copy() was always returning NULL...

18 years agolibs/gst/dataprotocol/dataprotocol.c: factor out CRC code
Thomas Vander Stichele [Fri, 2 Jun 2006 16:46:19 +0000 (16:46 +0000)]
libs/gst/dataprotocol/dataprotocol.c: factor out CRC code

Original commit message from CVS:
* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_header_from_buffer), (gst_dp_packet_from_caps),
(gst_dp_packet_from_event):
factor out CRC code

18 years agolibs/gst/check/gstcheck.c: make sure we unset caps
Thomas Vander Stichele [Fri, 2 Jun 2006 16:45:08 +0000 (16:45 +0000)]
libs/gst/check/gstcheck.c: make sure we unset caps

Original commit message from CVS:
* libs/gst/check/gstcheck.c: (gst_check_teardown_src_pad):
make sure we unset caps

18 years agolibs/gst/check/gstcheck.*: Add a cond/mutex to the check support lib, signal this...
Michael Smith [Fri, 2 Jun 2006 16:41:02 +0000 (16:41 +0000)]
libs/gst/check/gstcheck.*: Add a cond/mutex to the check support lib, signal this whenever we add to the buffers list...

Original commit message from CVS:
* libs/gst/check/gstcheck.c: (gst_check_init),
(gst_check_chain_func):
* libs/gst/check/gstcheck.h:
Add a cond/mutex to the check support lib, signal this whenever we
add to the buffers list. This will allow tests to not busy-wait on
the buffer-list.

18 years agolibs/gst/dataprotocol/dataprotocol.c: factor out some common header init code
Thomas Vander Stichele [Fri, 2 Jun 2006 10:58:47 +0000 (10:58 +0000)]
libs/gst/dataprotocol/dataprotocol.c: factor out some common header init code

Original commit message from CVS:
* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_header_from_buffer), (gst_dp_packet_from_caps),
(gst_dp_packet_from_event):
factor out some common header init code

18 years agoAPI: make gst_dp_crc() public
Thomas Vander Stichele [Fri, 2 Jun 2006 10:08:31 +0000 (10:08 +0000)]
API: make gst_dp_crc() public

Original commit message from CVS:

* docs/libs/gstreamer-libs-sections.txt:
* docs/libs/tmpl/gstdataprotocol.sgml:
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_crc):
* libs/gst/dataprotocol/dataprotocol.h:
API: make gst_dp_crc() public

18 years agodebug change
Thomas Vander Stichele [Fri, 2 Jun 2006 09:13:56 +0000 (09:13 +0000)]
debug change

Original commit message from CVS:
debug change

18 years agoplugins/indexers/gstindexers.c: conditionally register fileindexer (fixes #343598)
Stefan Kost [Thu, 1 Jun 2006 18:30:19 +0000 (18:30 +0000)]
plugins/indexers/gstindexers.c: conditionally register fileindexer (fixes #343598)

Original commit message from CVS:
* plugins/indexers/gstindexers.c: (plugin_init):
conditionally register fileindexer (fixes #343598)

18 years agogst/gsttagsetter.h: Can't cast ifaces to a class
Stefan Kost [Thu, 1 Jun 2006 18:22:14 +0000 (18:22 +0000)]
gst/gsttagsetter.h: Can't cast ifaces to a class

Original commit message from CVS:
* gst/gsttagsetter.h:
Can't cast ifaces to a class
* libs/gst/net/gstnetclientclock.h:
* libs/gst/net/gstnettimeprovider.h:
* plugins/elements/gstfakesink.h:
* plugins/elements/gstfakesrc.h:
* plugins/elements/gstfdsink.h:
* plugins/elements/gstfdsrc.h:
* plugins/elements/gstfilesink.h:
* plugins/elements/gstfilesrc.h:
* plugins/elements/gstidentity.h:
* plugins/elements/gstqueue.h:
* plugins/elements/gsttee.h:
* plugins/indexers/gstfileindex.c:
* plugins/indexers/gstmemindex.c:
* tests/old/examples/plugins/example.h:
Fix more gobject macros: obj<->klass, GstXXX<->GstXXXClass

18 years agolibs/gst/dataprotocol/dataprotocol.c: make sure we zero the whole ABI-compatible...
Thomas Vander Stichele [Thu, 1 Jun 2006 11:13:44 +0000 (11:13 +0000)]
libs/gst/dataprotocol/dataprotocol.c: make sure we zero the whole ABI-compatible area

Original commit message from CVS:

* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_header_from_buffer):
make sure we zero the whole ABI-compatible area

18 years agolibs/gst/base/gstcollectpads.c: Make sure the EOS flag is cleared from pads after...
Alessandro Decina [Thu, 1 Jun 2006 09:02:23 +0000 (09:02 +0000)]
libs/gst/base/gstcollectpads.c: Make sure the EOS flag is cleared from pads after a flush or stop. Fixes #343538.

Original commit message from CVS:
Patch by: Alessandro Decina <alessandro at nnva dot org>
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_stop):
Make sure the EOS flag is cleared from pads after a flush
or stop. Fixes #343538.
* tests/check/libs/collectpads.c: (GST_START_TEST),
(gst_collect_pads_suite):
Added test for collectpads reusage after EOS.

18 years agogst/gst.c: set #include <sys/wait.h> in a #ifdef #ifdef HAVE_FORK
Sébastien Moutte [Tue, 30 May 2006 20:25:03 +0000 (20:25 +0000)]
gst/gst.c: set #include <sys/wait.h> in a #ifdef #ifdef HAVE_FORK

Original commit message from CVS:
* gst/gst.c:
set #include <sys/wait.h> in a #ifdef #ifdef HAVE_FORK
* win32/common/libgstbase.def:
export gst_collect_pads_set_flushing
* win32/common/libgstreamer.def:
export gst_pad_set_acceptcaps_function, gst_structure_empty_new,
gst_value_fraction_multiply
* win32/vs6/gst_inspect.dsp:
add a link to intl.lib

18 years agolibs/gst/base/gstcollectpads.c: Handle the case where a pad is removed from the colle...
Wim Taymans [Tue, 30 May 2006 15:55:19 +0000 (15:55 +0000)]
libs/gst/base/gstcollectpads.c: Handle the case where a pad is removed from the collection that could cause the other...

Original commit message from CVS:
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_remove_pad),
(gst_collect_pads_chain):
Handle the case where a pad is removed from the collection
that could cause the other pads to become collectable.

18 years agogst/gstelement.c: Clarify the use of _release_request_pad() and _get_request_pad...
Wim Taymans [Tue, 30 May 2006 15:53:40 +0000 (15:53 +0000)]
gst/gstelement.c: Clarify the use of _release_request_pad() and _get_request_pad() a bit better.

Original commit message from CVS:
* gst/gstelement.c:
Clarify the use of _release_request_pad() and
_get_request_pad() a bit better.
* libs/gst/base/gstadapter.c: (gst_adapter_peek),
(gst_adapter_take_buffer):
Fix some doc and comment typos.

18 years agodocs/: add declared symbols
Thomas Vander Stichele [Tue, 30 May 2006 14:43:35 +0000 (14:43 +0000)]
docs/: add declared symbols

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* docs/libs/gstreamer-libs-sections.txt:
add declared symbols

18 years agoupdate po files
Thomas Vander Stichele [Tue, 30 May 2006 14:41:15 +0000 (14:41 +0000)]
update po files

Original commit message from CVS:
update po files

18 years agofix build
Thomas Vander Stichele [Tue, 30 May 2006 14:40:48 +0000 (14:40 +0000)]
fix build

Original commit message from CVS:
fix build

18 years agoadded HAVE_FORK
Thomas Vander Stichele [Tue, 30 May 2006 14:03:58 +0000 (14:03 +0000)]
added HAVE_FORK

Original commit message from CVS:
added HAVE_FORK

18 years agogst/gstsystemclock.c: Add debug that can be enabled using a #define at the top of...
Jan Schmidt [Tue, 30 May 2006 12:04:29 +0000 (12:04 +0000)]
gst/gstsystemclock.c: Add debug that can be enabled using a #define at the top of the file, for dumping stats about h...

Original commit message from CVS:
* gst/gstsystemclock.c: (gst_system_clock_id_wait_unlocked):
Add debug that can be enabled using a #define at the top of the file,
for dumping stats about how late/early we were when waking up from
waiting on the clock.

18 years agolibs/gst/base/gstcollectpads.c: When rebuilding the pad list, don't leak the previous...
Wim Taymans [Tue, 30 May 2006 11:43:43 +0000 (11:43 +0000)]
libs/gst/base/gstcollectpads.c: When rebuilding the pad list, don't leak the previous list.

Original commit message from CVS:
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_check_pads):
When rebuilding the pad list, don't leak the previous list.

18 years agolibs/gst/base/gstbasesrc.c: Publish supported query types.
Lutz Mueller [Tue, 30 May 2006 10:57:44 +0000 (10:57 +0000)]
libs/gst/base/gstbasesrc.c: Publish supported query types.

Original commit message from CVS:
Patch by: Lutz Mueller <lutz at topfrose dot de>
* libs/gst/base/gstbasesrc.c: (gst_base_src_class_init),
(gst_base_src_get_query_types), (gst_base_src_update_length):
Publish supported query types.
Update last_stop field in get_range mode so the position
query works. Fixes #342321.

18 years agoAPI: add GST_TAG_PREVIEW_IMAGE (#343341).
Tim-Philipp Müller [Tue, 30 May 2006 10:12:02 +0000 (10:12 +0000)]
API: add GST_TAG_PREVIEW_IMAGE (#343341).

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

18 years agolibs/gst/base/gstcollectpads.c: Unlock mutex when removing an unknown pad.
Alessandro Decina [Tue, 30 May 2006 09:42:09 +0000 (09:42 +0000)]
libs/gst/base/gstcollectpads.c: Unlock mutex when removing an unknown pad.

Original commit message from CVS:
Patch by: Alessandro Decina <alessandro at nnva dot org>
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_remove_pad):
Unlock mutex when removing an unknown pad.
Fixes #343334.
* tests/check/Makefile.am:
* tests/check/libs/collectpads.c: (collected_cb), (push_buffer),
(push_event), (setup), (teardown), (GST_START_TEST),
(gst_collect_pads_suite), (main):
Added collecpads check, disabled for now as check crashes for
some reason.

18 years agolibs/gst/base/gstcollectpads.c: Don't leak pads lists.
Wim Taymans [Mon, 29 May 2006 17:20:03 +0000 (17:20 +0000)]
libs/gst/base/gstcollectpads.c: Don't leak pads lists.

Original commit message from CVS:
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_finalize):
Don't leak pads lists.

18 years agoAPI: gst_collect_pads_set_flushing
Wim Taymans [Mon, 29 May 2006 16:00:13 +0000 (16:00 +0000)]
API: gst_collect_pads_set_flushing

Original commit message from CVS:
* docs/libs/gstreamer-libs-sections.txt:
* libs/gst/base/gstcollectpads.c:
(gst_collect_pads_set_flushing_unlocked),
(gst_collect_pads_set_flushing), (gst_collect_pads_start),
(gst_collect_pads_stop):
* libs/gst/base/gstcollectpads.h:
API: gst_collect_pads_set_flushing
Added api to set the pads to flushing, usefull for seeking
code in elements using collectpads.
Clear segment when receiving a flush.

18 years agogst/gst.c: Don't scan registry paths passed via --gst-plugin--path immediately (will...
Tim-Philipp Müller [Mon, 29 May 2006 11:52:50 +0000 (11:52 +0000)]
gst/gst.c: Don't scan registry paths passed via --gst-plugin--path immediately (will crash, because absolutely nothin...

Original commit message from CVS:
* gst/gst.c: (add_path_func), (init_post):
Don't scan registry paths passed via --gst-plugin--path immediately
(will crash, because absolutely nothing is set up and no types are
registered etc.); do this later in init_post(). Fixes #343057.

18 years agogst/gst.c: if we have fork, fork while reading/rebuilding the registry so the parent...
Thomas Vander Stichele [Sun, 28 May 2006 09:09:03 +0000 (09:09 +0000)]
gst/gst.c: if we have fork, fork while reading/rebuilding the registry so the parent doesn't take the hit of having a...

Original commit message from CVS:

* gst/gst.c: (init_post):
if we have fork, fork while reading/rebuilding the registry
so the parent doesn't take the hit of having all plugins loaded
in memory.  Fixes #342777.
* configure.ac:
Check if we have fork()
* win32/common/config.h.in:
no fork() on win32

18 years agoplugins/elements/: Add a use-mmap property to enable easier testing of all code paths.
Jan Schmidt [Fri, 26 May 2006 13:52:03 +0000 (13:52 +0000)]
plugins/elements/: Add a use-mmap property to enable easier testing of all code paths.

Original commit message from CVS:
* plugins/elements/gstelements.c:
* plugins/elements/gstfilesrc.c: (gst_file_src_class_init),
(gst_file_src_init), (gst_file_src_set_property),
(gst_file_src_get_property), (gst_file_src_start):
* plugins/elements/gstfilesrc.h:
Add a use-mmap property to enable easier testing of all code paths.
Bump rank to PRIMARY, so filesrc is the preferred file reader and used
in the absence of gnomevfssrc. (Closes #340501)

18 years agotools/gst-inspect.c: Add missing include, removes warning of ngettext not being defin...
Zaheer Abbas Merali [Fri, 26 May 2006 10:35:34 +0000 (10:35 +0000)]
tools/gst-inspect.c: Add missing include, removes warning of ngettext not being defined on some arches.

Original commit message from CVS:
2006-05-26  Zaheer Abbas Merali  <zaheerabbas at merali dot org>

* tools/gst-inspect.c:
Add missing include, removes warning of ngettext not being defined on
some arches.

18 years agogst/gstvalue.c: Handle NULL input and output pointers silently as a failed conversion...
Jan Schmidt [Fri, 26 May 2006 09:19:24 +0000 (09:19 +0000)]
gst/gstvalue.c: Handle NULL input and output pointers silently as a failed conversion, rather than g_warnings.

Original commit message from CVS:
* gst/gstvalue.c: (gst_value_deserialize_fraction):
Handle NULL input and output pointers silently as a failed conversion,
rather than g_warnings.

18 years agolibs/gst/net/gstnetclientclock.c: Initialize variable before using. Fixes #342820.
Wim Taymans [Thu, 25 May 2006 15:52:19 +0000 (15:52 +0000)]
libs/gst/net/gstnetclientclock.c: Initialize variable before using. Fixes #342820.

Original commit message from CVS:
* libs/gst/net/gstnetclientclock.c: (gst_net_client_clock_start):
Initialize variable before using. Fixes #342820.

18 years agolibs/gst/base/gsttypefindhelper.c: Fix off-by-one bug that would only allow peeks...
Tim-Philipp Müller [Wed, 24 May 2006 17:11:06 +0000 (17:11 +0000)]
libs/gst/base/gsttypefindhelper.c: Fix off-by-one bug that would only allow peeks of N-1 bytes from the start even if...

Original commit message from CVS:
* libs/gst/base/gsttypefindhelper.c: (buf_helper_find_peek):
Fix off-by-one bug that would only allow peeks of N-1 bytes
from the start even if the buffer to typefind on contains
in fact N bytes of data (makes vorbis typefinding from a
vorbis identification header buffer work).
* tests/check/Makefile.am:
* tests/check/libs/.cvsignore:
* tests/check/libs/typefindhelper.c: (GST_START_TEST),
(gst_typefindhelper_suite), (main), (foobar_typefind),
(plugin_init):
Add very basic unit test for gst_type_find_helper_for_buffer()
that checks for the problem fixed above.

18 years agodoc indent fix
Thomas Vander Stichele [Wed, 24 May 2006 09:00:47 +0000 (09:00 +0000)]
doc indent fix

Original commit message from CVS:
doc indent fix

18 years agomark more strings for translation
Thomas Vander Stichele [Wed, 24 May 2006 09:00:10 +0000 (09:00 +0000)]
mark more strings for translation

Original commit message from CVS:
mark more strings for translation

18 years agodocs/gst/gstreamer-sections.txt: Make new GST_FLOW_IS_SUCCESS macro visible in docs.
Julien Moutte [Tue, 23 May 2006 14:23:49 +0000 (14:23 +0000)]
docs/gst/gstreamer-sections.txt: Make new GST_FLOW_IS_SUCCESS macro visible in docs.

Original commit message from CVS:
Patch by: Julien Moutte  <julien at moutte net>
* docs/gst/gstreamer-sections.txt:
Make new GST_FLOW_IS_SUCCESS macro visible in docs.
* plugins/elements/gstfakesink.c: (gst_fake_sink_class_init),
(gst_fake_sink_preroll):
* plugins/elements/gstfakesink.h:
Add new ::preroll-handoff signal (#337100).

18 years agogst/gstpad.*: Added _CUSTOM error and success GstFlowReturn that can be used be eleme...
Wim Taymans [Tue, 23 May 2006 11:13:51 +0000 (11:13 +0000)]
gst/gstpad.*: Added _CUSTOM error and success GstFlowReturn that can be used be elements internally.

Original commit message from CVS:
* gst/gstpad.c: (gst_flow_get_name), (gst_flow_to_quark):
* gst/gstpad.h:
Added _CUSTOM error and success GstFlowReturn that can be
used be elements internally.
Added macro to check for SUCCESS flowreturns.
API: GST_FLOW_CUSTOM_SUCCESS
API: GST_FLOW_CUSTOM_ERROR
API: GST_FLOW_IS_SUCCESS
* tests/check/gst/gstpad.c: (GST_START_TEST), (gst_pad_suite):
Added check for GstFlowReturn sanity.

18 years agolibs/gst/base/gstcollectpads.c: clear/reset segment info in FLUSH_STOP.
Mark Nauwelaerts [Tue, 23 May 2006 09:40:14 +0000 (09:40 +0000)]
libs/gst/base/gstcollectpads.c: clear/reset segment info in FLUSH_STOP.

Original commit message from CVS:
Patch by: Mark Nauwelaerts <manauw at skynet dot be>
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_remove_pad),
(gst_collect_pads_event):
clear/reset segment info in FLUSH_STOP.
Fixes #336929.

18 years agolibs/gst/base/gstcollectpads.c: Flush queued buffer on _stop(), fixes playing again...
Stefan Kost [Mon, 22 May 2006 16:30:34 +0000 (16:30 +0000)]
libs/gst/base/gstcollectpads.c: Flush queued buffer on _stop(), fixes playing again (#342454)

Original commit message from CVS:
* libs/gst/base/gstcollectpads.c: (gst_collect_pads_stop),
(gst_collect_pads_check_collected):
Flush queued buffer on _stop(), fixes playing again (#342454)

18 years agotests/check/gst/gststructure.c: add a test for a complete structure
Thomas Vander Stichele [Mon, 22 May 2006 13:34:03 +0000 (13:34 +0000)]
tests/check/gst/gststructure.c: add a test for a complete structure

Original commit message from CVS:
* tests/check/gst/gststructure.c: (GST_START_TEST),
(gst_structure_suite):
add a test for a complete structure

18 years agodebugging changes
Thomas Vander Stichele [Mon, 22 May 2006 13:31:48 +0000 (13:31 +0000)]
debugging changes

Original commit message from CVS:
debugging changes

18 years agodocs/faq/: Some minor FAQ updates that won't change the fact that our FAQ is badly...
Tim-Philipp Müller [Fri, 19 May 2006 15:35:41 +0000 (15:35 +0000)]
docs/faq/: Some minor FAQ updates that won't change the fact that our FAQ is badly structured, full of information ha...

Original commit message from CVS:
* docs/faq/developing.xml:
* docs/faq/faq.xml:
* docs/faq/troubleshooting.xml:
* docs/faq/using.xml:
Some minor FAQ updates that won't change the fact that
our FAQ is badly structured, full of information hardly
anyone new to GStreamer needs to know and lacking lots
of information people constantly ask for.

18 years agogst/gstpad.c: Short-circuit gst_pad_set_caps if setting the existing caps pointer...
Jan Schmidt [Fri, 19 May 2006 13:46:10 +0000 (13:46 +0000)]
gst/gstpad.c: Short-circuit gst_pad_set_caps if setting the existing caps pointer again, and avoid printing debug and...

Original commit message from CVS:
* gst/gstpad.c: (gst_pad_set_caps):
Short-circuit gst_pad_set_caps if setting the existing
caps pointer again, and avoid printing debug and
reffing/unreffing the caps.
* plugins/elements/gstqueue.c: (gst_queue_push_one):
There's actually no need to set the caps before pushing -
the acceptcaps method will handle it anyway.

18 years agoAPI: add gst_element_seek_simple() (#342238).
Tim-Philipp Müller [Fri, 19 May 2006 10:29:07 +0000 (10:29 +0000)]
API: add gst_element_seek_simple() (#342238).

Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* win32/common/libgstreamer.def:
* gst/gstutils.c: (gst_element_seek_simple):
* gst/gstutils.h:
API: add gst_element_seek_simple() (#342238).

18 years agogst/gsttypefind.*: Added GST_TYPE_TYPE_FIND and gst_type_find_get_type() so a GType...
Edward Hervey [Thu, 18 May 2006 14:25:00 +0000 (14:25 +0000)]
gst/gsttypefind.*: Added GST_TYPE_TYPE_FIND and gst_type_find_get_type() so a GType gets registered for GstTypeFind p...

Original commit message from CVS:
* gst/gsttypefind.c: (gst_type_find_get_type):
* gst/gsttypefind.h:
Added GST_TYPE_TYPE_FIND and gst_type_find_get_type() so a GType gets
registered for GstTypeFind pointers. This allows wrapping the structure
in bindings (i.e. gst-python).

18 years agogst/gsttagsetter.c: Docs additions and fixes (see #339918).
Tim-Philipp Müller [Thu, 18 May 2006 14:01:03 +0000 (14:01 +0000)]
gst/gsttagsetter.c: Docs additions and fixes (see #339918).

Original commit message from CVS:
* gst/gsttagsetter.c:
Docs additions and fixes (see #339918).

18 years agoplugins/elements/gstcapsfilter.c: The caps intersection algorithm can produce multipl...
Jan Schmidt [Thu, 18 May 2006 09:07:55 +0000 (09:07 +0000)]
plugins/elements/gstcapsfilter.c: The caps intersection algorithm can produce multiple copies of the caps. Until that...

Original commit message from CVS:
* plugins/elements/gstcapsfilter.c: (gst_capsfilter_prepare_buf):
The caps intersection algorithm can produce multiple copies of the
caps. Until that is fixed, we need to simplify the result to be
sure whether the allowed caps are fixed or not.
* plugins/elements/gstqueue.c: (gst_queue_init),
(gst_queue_bufferalloc), (gst_queue_acceptcaps),
(gst_queue_push_one):
Proxied buffer alloc should not set the caps on the source pad.
When pushing buffers, we always accept the caps change that triggers.
This prevents negotiation errors caused by caps changing mid-stream
and then being refused on our source pad (because upstream is now
refusing those caps).

18 years agotests/examples/helloworld/helloworld.c: Must plug audioconvert and audioresample...
Tim-Philipp Müller [Thu, 18 May 2006 08:48:21 +0000 (08:48 +0000)]
tests/examples/helloworld/helloworld.c: Must plug audioconvert and audioresample between decoder and audio sink.

Original commit message from CVS:
* tests/examples/helloworld/helloworld.c: (main):
Must plug audioconvert and audioresample between decoder
and audio sink.

18 years agoMention bug fixed by previous commit
Jan Schmidt [Wed, 17 May 2006 14:18:12 +0000 (14:18 +0000)]
Mention bug fixed by previous commit

Original commit message from CVS:
Mention bug fixed by previous commit

18 years agogst/gstregistryxml.c: Allow empty strings for some of the plugin fields so we don...
Jan Schmidt [Wed, 17 May 2006 14:01:33 +0000 (14:01 +0000)]
gst/gstregistryxml.c: Allow empty strings for some of the plugin fields so we don't drop valid plugin entries that we...

Original commit message from CVS:
* gst/gstregistryxml.c: (read_string), (load_pad_template),
(load_feature), (load_plugin):
Allow empty strings for some of the plugin fields so we don't
drop valid plugin entries that were written out correctly.

18 years agogst/gstregistryxml.c: Use g_remove and g_rename instead of remove and rename that...
Sébastien Moutte [Wed, 17 May 2006 13:40:20 +0000 (13:40 +0000)]
gst/gstregistryxml.c: Use g_remove and g_rename instead of remove and rename that don't handle utf8 characters. renam...

Original commit message from CVS:
* gst/gstregistryxml.c: (gst_registry_xml_write_cache):
Use g_remove and g_rename instead of remove and rename that don't
handle utf8 characters. rename was failing for users who had specific
characters in their name then the registry was built at each gstreamer init.
* win32/vs6/gst_inspect.dsp:
* win32/vs6/gst_launch.dsp:
* win32/vs6/libgstbase.dsp:
* win32/vs6/libgstcoreelements.dsp:
* win32/vs6/libgstreamer.dsp:
Use a debug version of libxml2 (libxml2D.lib,libxml2D.dll) for DEBUG build
of libgstreamer and clean unused libraries in project links settings.

18 years agoplugins/elements/gstqueue.c: The queue is not responsible for pushing an EOS when...
Edward Hervey [Wed, 17 May 2006 09:24:34 +0000 (09:24 +0000)]
plugins/elements/gstqueue.c: The queue is not responsible for pushing an EOS when receiving a fatal flow error. It's ...

Original commit message from CVS:
* plugins/elements/gstqueue.c: (gst_queue_push_one):
The queue is not responsible for pushing an EOS when receiving a fatal
flow error. It's up to the real element driving the pipeline to do that.

18 years agoplugins/elements/gstqueue.c: The queue was posting a non-needed GST_MESSAGE_ERROR...
Edward Hervey [Tue, 16 May 2006 17:15:02 +0000 (17:15 +0000)]
plugins/elements/gstqueue.c: The queue was posting a non-needed GST_MESSAGE_ERROR when pushing a buffer returned a fa...

Original commit message from CVS:
* plugins/elements/gstqueue.c: (gst_queue_push_one):
The queue was posting a non-needed GST_MESSAGE_ERROR when pushing a
buffer returned a fatal error. It should just send an EOS and stop
it's task.
Upstream elements will then properly receive the GST_FLOW_UNEXPECTED
when pushing buffers on the queue and will be able to handle the event.

18 years agodocs/manual/: Fix typos and minor errors in sample code (#341856).
Tim-Philipp Müller [Tue, 16 May 2006 16:10:38 +0000 (16:10 +0000)]
docs/manual/: Fix typos and minor errors in sample code (#341856).

Original commit message from CVS:
* docs/manual/basics-bins.xml:
* docs/manual/basics-init.xml:
Fix typos and minor errors in sample code (#341856).