Commit graph

2449 commits

Author SHA1 Message Date
Ronald S. Bultje
418ac69651 gst/gstpad.c: Fix gst_pad_relink_filtered(), which is #300339.
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_link_prepare):
Fix gst_pad_relink_filtered(), which is #300339.
2005-04-23 16:31:39 +00:00
Benjamin Otte
3bef22d727 gst/gst.c: declare gst initialized before eventually rebuilding the registry.
Original commit message from CVS:
* gst/gst.c: (gst_init_check_with_popt_table), (init_post),
(init_popt_callback):
declare gst initialized before eventually rebuilding the registry.
Fixes issues with plugins calling gst_init
* gst/gstelementfactory.c: (gst_element_factory_cleanup),
(gst_element_register), (gst_element_factory_unload_thyself):
warn and fail properly when element details aren't initialized. Also
unref the class when we don't need it anymore instead of never/only
on failure
2005-04-22 23:53:32 +00:00
Ronald S. Bultje
20e6e96160 gst/gstelement.c: Allow unlinking ghostpads using gst_element_unlink(), which fixes #301331.
Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/gstelement.c: (gst_element_unlink):
Allow unlinking ghostpads using gst_element_unlink(), which
fixes #301331.
2005-04-22 15:08:02 +00:00
Ronald S. Bultje
970c2f3ff6 gst/elements/gsttypefindelement.c: Don't cache seek events (fixes #301313).
Original commit message from CVS:
* gst/elements/gsttypefindelement.c:
(gst_type_find_element_handle_event):
Don't cache seek events (fixes #301313).
2005-04-22 15:03:50 +00:00
Ronald S. Bultje
d6386e096a More GCC4 warning fixes. Basically all libxml-guchar* to sane-gchar* casts (and reverse).
Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* examples/typefind/typefind.c: (type_found):
* examples/xml/createxml.c: (object_saved):
* examples/xml/runxml.c: (xml_loaded), (main):
* gst/elements/gstaggregator.c: (gst_aggregator_loop),
(gst_aggregator_chain):
* gst/elements/gstmd5sink.c: (gst_md5sink_get_property):
* gst/elements/gsttypefindelement.c: (find_element_get_length),
(gst_type_find_element_handle_event):
* gst/gsttrace.c: (gst_trace_flush), (gst_trace_text_flush):
* gst/gstxml.c: (gst_xml_write), (gst_xml_parse_doc),
(gst_xml_parse_file), (gst_xml_parse_memory),
(gst_xml_get_element), (gst_xml_make_element):
* gst/indexers/gstfileindex.c: (gst_file_index_load),
(_file_index_id_save_xml), (gst_file_index_commit):
* gst/schedulers/gstoptimalscheduler.c:
(group_inc_links_for_element):
* libs/gst/dataprotocol/dataprotocol.c: (gst_dp_packet_from_caps),
(gst_dp_packet_from_event), (gst_dp_caps_from_packet):
* tools/gst-complete.c: (main):
* tools/gst-compprep.c: (main):
* tools/gst-inspect.c: (print_element_properties_info):
* tools/gst-launch.c: (xmllaunch_parse_cmdline):
* tools/gst-xmlinspect.c: (print_element_properties):
More GCC4 warning fixes. Basically all libxml-guchar* to
sane-gchar* casts (and reverse).
2005-04-22 12:30:01 +00:00
Ronald S. Bultje
976b3b565d gst/gstpad.c: Silly typo.
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_event_default):
Silly typo.
2005-04-22 10:36:18 +00:00
Ronald S. Bultje
e97710f04a gst/gstpad.c: Fix one more signed/unsigned issue.
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_event_default):
Fix one more signed/unsigned issue.
2005-04-22 10:13:22 +00:00
Ronald S. Bultje
3c8e11f0a3 gst/: Add works-in-place flag, use for _pad_alloc().
Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/gstelement.h:
* gst/gstpad.c: (gst_pad_alloc_buffer):
Add works-in-place flag, use for _pad_alloc().
* gst/elements/gstidentity.c: (gst_identity_init):
* gst/gstqueue.c: (gst_queue_init):
Use works-in-place flag (#300932).
2005-04-22 10:01:39 +00:00
Ronald S. Bultje
fc3f486636 Unsigned/signed case, missing void in no-argument functions and other small fixes to compile 100% clean on GCC4 (#301...
Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/autoplug/spidertest.c: (property_change_callback):
* gst/gstbin.c: (gst_bin_save_thyself), (gst_bin_restore_thyself):
* gst/gstcaps.c: (gst_caps_do_simplify), (gst_caps_save_thyself),
(gst_caps_load_thyself):
* gst/gstelement.c: (gst_element_save_thyself),
(gst_element_restore_thyself):
* gst/gstpad.c: (gst_pad_load_and_link), (gst_pad_save_thyself),
(gst_ghost_pad_save_thyself):
* gst/registries/gstlibxmlregistry.c: (read_string), (read_uint),
(read_enum), (load_pad_template), (load_feature), (load_plugin),
(load_paths):
* libs/gst/control/dparammanager.c: (_gst_dpman_initialize):
* libs/gst/control/unitconvert.c: (gst_unitconv_new),
(gst_unitconv_unit_spec):
* libs/gst/dataprotocol/dataprotocol.c:
(gst_dp_buffer_from_header), (gst_dp_caps_from_packet),
(gst_dp_event_from_packet):
Unsigned/signed case, missing void in no-argument functions
and other small fixes to compile 100% clean on GCC4 (#301166).
2005-04-22 09:34:31 +00:00
Tim-Philipp Müller
01e9e90d8d gst/elements/gstelements.c: Give filesrc GST_RANK_PRIMARY, so that file:// URIs get handled by filesrc instead of gno...
Original commit message from CVS:
* gst/elements/gstelements.c:
Give filesrc GST_RANK_PRIMARY, so that file:// URIs
get handled by filesrc instead of gnomevfssrc.
2005-04-21 17:43:49 +00:00
Stefan Kost
2aa179d5ec new iface to uniformly access elements children and their properties
Original commit message from CVS:
new iface to uniformly access elements children and their properties
2005-04-21 17:10:09 +00:00
Ronald S. Bultje
30f318eb3e gst/elements/gsttypefindelement.c: Allow event caching while typefinding so we don't lose events.
Original commit message from CVS:
* gst/elements/gsttypefindelement.c: (gst_type_find_element_init),
(push_buffer_store), (gst_type_find_element_handle_event),
(gst_type_find_element_change_state):
Allow event caching while typefinding so we don't lose events.
* gst/elements/gsttypefindelement.h:
Allow event caching while typefinding so we don't lose events.
* gst/gsttag.c: (_gst_tag_initialize):
* gst/gsttag.h:
Add language-code tag.
* gst/registries/gstlibxmlregistry.c: (load_pad_template),
(load_feature), (load_paths):
Fix memleaks (#300736), based on patch from Kjartan Maraas
<kmaraas@gnome.org>.
2005-04-17 20:43:55 +00:00
Thomas Vander Stichele
022058d29e some trademark protection
Original commit message from CVS:
some trademark protection
2005-04-16 08:31:50 +00:00
Ronald S. Bultje
418c32e600 gst/registries/gstlibxmlregistry.c: Fix memleak.
Original commit message from CVS:
* gst/registries/gstlibxmlregistry.c: (load_paths):
Fix memleak.
2005-04-13 20:54:07 +00:00
Ronald S. Bultje
409eda442d gst/gstparent.*: Fix build.
Original commit message from CVS:
* gst/gstparent.c:
* gst/gstparent.h:
Fix build.
2005-04-09 16:12:05 +00:00
Stefan Kost
2691c48b31 removed the new interface again, please comment on http://bugzilla.gnome.org/show_bug.cgi?id=171735
Original commit message from CVS:
removed the new interface again, please comment on
http://bugzilla.gnome.org/show_bug.cgi?id=171735
2005-04-08 12:11:35 +00:00
Stefan Kost
f0d47db2e0 a new interface for managing elements with multiple children
Original commit message from CVS:
a new interface for managing elements with multiple children
2005-04-08 11:34:14 +00:00
Ronald S. Bultje
52f501457d gst/gstelement.c: Always set event source.
Original commit message from CVS:
* gst/gstelement.c: (gst_element_found_tags_for_pad):
Always set event source.
2005-03-30 10:55:35 +00:00
Ronald S. Bultje
2a7b791b32 gst/elements/gstfdsrc.*: Fix hang on state-change with blocking input (#149791).
Original commit message from CVS:
* gst/elements/gstfdsrc.c: (gst_fdsrc_class_init),
(gst_fdsrc_change_state), (gst_fdsrc_release_locks),
(gst_fdsrc_get):
* gst/elements/gstfdsrc.h:
Fix hang on state-change with blocking input (#149791).
2005-03-26 15:24:31 +00:00
David Schleef
c1ce267dd1 gst/gstcpu.c: Add a temporary
Original commit message from CVS:
* gst/gstcpu.c: (illegal_instruction_handler),
(cpu_fault_check_enable), (cpu_fault_check_try),
(cpu_fault_check_disable), (gst_cpuid_i386), (test_cpuid),
(gst_cpuid_test), (_gst_cpu_initialize_i386): Add a temporary
SIGILL handler to check for the existence of cpuid before
using it.  (fixes #166696)
2005-03-26 00:13:34 +00:00
Ronald S. Bultje
41b7a94969 gst/: Remove caps as a string (fixes #137485).
Original commit message from CVS:
* gst/elements/gsttypefindelement.c:
* gst/gsterror.c: (_gst_core_errors_init):
* gst/gsterror.h:
* gst/parse/grammar.y:
Remove caps as a string (fixes #137485).
2005-03-25 19:52:11 +00:00
Ronald S. Bultje
ccd1b69b71 gst/elements/gstfilesrc.c: Fix broken handling of mmapsize property. Remove useless g_object_notify(). Fixes #171400.
Original commit message from CVS:
Reviewed by: Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/elements/gstfilesrc.c: (gst_filesrc_set_property):
Fix broken handling of mmapsize property. Remove useless
g_object_notify(). Fixes #171400.
2005-03-23 22:12:58 +00:00
Tim-Philipp Müller
62cf7cc54d Handle escaped spaces in structure string, so that gst_parse_launch() can deal with spaces in filtered link caps (fix...
Original commit message from CVS:
Handle escaped spaces in structure string, so that gst_parse_launch() can deal with spaces in filtered link caps (fixes #164479)
2005-03-21 15:43:41 +00:00
Benjamin Otte
f7af07c1b8 gst/gstbuffer.h: deprecate gst_buffer_set_data macro because a) it's a macro and b) glib-style set functions don't ta...
Original commit message from CVS:
* gst/gstbuffer.h:
deprecate gst_buffer_set_data macro because a) it's a macro and b)
glib-style set functions don't take ownership of supplied values
2005-03-20 20:20:52 +00:00
Ronald S. Bultje
d985215629 gst/elements/gstfdsrc.*: Let's implement the URI interface.
Original commit message from CVS:
* gst/elements/gstfdsrc.c: (_do_init), (gst_fdsrc_class_init),
(gst_fdsrc_dispose), (gst_fdsrc_init), (gst_fdsrc_set_property),
(gst_fdsrc_uri_get_type), (gst_fdsrc_uri_get_protocols),
(gst_fdsrc_uri_get_uri), (gst_fdsrc_uri_set_uri),
(gst_fdsrc_uri_handler_init):
* gst/elements/gstfdsrc.h:
Let's implement the URI interface.
2005-03-14 19:14:05 +00:00
Ronald S. Bultje
f0423be7c0 gst/gsterror.c: Fix descriptions (#164479).
Original commit message from CVS:
* gst/gsterror.c: (_gst_library_errors_init):
Fix descriptions (#164479).
2005-03-12 23:25:00 +00:00
Ronald S. Bultje
f827754418 gst/elements/gsttypefindelement.c: Fix memleak (#170067).
Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/elements/gsttypefindelement.c:
(gst_type_find_element_handle_event):
Fix memleak (#170067).
2005-03-12 22:49:51 +00:00
Ronald S. Bultje
7b6bc1b774 gst/gstevent.c: Register type in _get_type(), as we do for all types. Fixes some issues for bindings (#169405).
Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/gstevent.c: (_gst_event_initialize), (gst_event_get_type):
Register type in _get_type(), as we do for all types. Fixes
some issues for bindings (#169405).
2005-03-12 22:38:35 +00:00
Ronald S. Bultje
f478e2c0c4 gst/gstindex.c: Oops, this is a gobject, not a gstobject.
Original commit message from CVS:
* gst/gstindex.c: (gst_index_factory_new):
Oops, this is a gobject, not a gstobject.
2005-03-12 20:07:28 +00:00
Ronald S. Bultje
ae77261146 Fix documentation.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/gstindex.sgml:
* gst/gstindex.c:
Fix documentation.
2005-03-11 23:42:11 +00:00
Ronald S. Bultje
d25234af09 gst/gstindex.c: Fix memory leaks and refcount issues (#168493).
Original commit message from CVS:
* gst/gstindex.c: (gst_index_factory_new):
Fix memory leaks and refcount issues (#168493).
2005-03-11 21:01:17 +00:00
Ronald S. Bultje
1276d61329 gst/gstindex.h: Add already-existing function to header (#168703).
Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/gstindex.h:
Add already-existing function to header (#168703).
2005-03-11 19:49:00 +00:00
Ronald S. Bultje
09226e160e gst/elements/gstfdsrc.c: Fix cygwin compile error (#169732).
Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/elements/gstfdsrc.c:
Fix cygwin compile error (#169732).
2005-03-10 17:22:14 +00:00
Jan Schmidt
6da18bd898 gst/registries/gstlibxmlregistry.c: g_free allocated GstPlugins, since they're not GstObjects.
Original commit message from CVS:
* gst/registries/gstlibxmlregistry.c: (load_plugin), (load_paths):
g_free allocated GstPlugins, since they're not GstObjects.
2005-03-09 14:54:54 +00:00
Jan Schmidt
009d01a841 Add GST_EVENT_COMMON_FLAG_NEED_RESPONSE flag (TRUE by default) to indicate whether a reply is expected to an upstream...
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/gstevent.sgml:
* gst/gstevent.c: (gst_event_new):
* gst/gstevent.h:
Add GST_EVENT_COMMON_FLAG_NEED_RESPONSE flag (TRUE by default)
to indicate whether a reply is expected to an upstream event.

* gst/gstqueue.c: (gst_queue_finalize),
(gst_queue_handle_pending_events), (gst_queue_handle_src_event):
If GST_EVENT_COMMON_FLAG_NEED_RESPONSE is not set, just queue the
event without blocking on a reply.
2005-03-09 11:45:03 +00:00
Ronald S. Bultje
74f409b76f Fix libxml-less compilation (--disable-loadsave).
Original commit message from CVS:
* configure.ac:
* gst/gstconfig.h.in:
* gst/indexers/gstindexers.c: (plugin_init):
* gst/registries/gstxmlregistry.h:
Fix libxml-less compilation (--disable-loadsave).
2005-03-09 08:45:03 +00:00
Ronald S. Bultje
b27e849a5f gst/registries/: Implement libxml2-based registry (allows for roughly 2x as fast startup), mostly based on earlier co...
Original commit message from CVS:
* gst/registries/Makefile.am:
* gst/registries/gstlibxmlregistry.c: (gst_xml_registry_get_type),
(gst_xml_registry_class_init), (gst_xml_registry_init),
(gst_xml_registry_new), (gst_xml_registry_set_property),
(gst_xml_registry_get_property), (get_time), (make_dir),
(gst_xml_registry_get_perms_func),
(plugin_times_older_than_recurse), (plugin_times_older_than),
(gst_xml_registry_open_func), (gst_xml_registry_load_func),
(gst_xml_registry_save_func), (gst_xml_registry_close_func),
(add_to_char_array), (read_string), (read_uint), (read_enum),
(load_pad_template), (load_feature), (load_plugin), (load_paths),
(gst_xml_registry_load), (gst_xml_registry_load_plugin),
(gst_xml_registry_save_caps), (gst_xml_registry_save_pad_template),
(gst_xml_registry_save_feature), (gst_xml_registry_save_plugin),
(gst_xml_registry_save), (gst_xml_registry_rebuild_recurse),
(gst_xml_registry_rebuild):
* gst/registries/gstlibxmlregistry.h:
Implement libxml2-based registry (allows for roughly 2x as fast
startup), mostly based on earlier code from Benjamin Otte.
2005-03-09 08:41:42 +00:00
Jan Schmidt
733624210a gst/elements/gstfilesrc.c: If we checked the file size and it got bigger, don't
Original commit message from CVS:
* gst/elements/gstfilesrc.c: (gst_filesrc_get):
If we checked the file size and it got bigger, don't
EOS anyway.

* gst/gst.c: (gst_init_check_with_popt_table), (init_pre):
Don't parse the GST_DEBUG env var list twice (once in the
init_pre and then again in the init_check).
Add GST_DEBUGNOCOLOR env variable.

* gst/gstclock.c: (gst_clock_id_wait), (gst_clock_set_speed),
(gst_clock_get_speed), (gst_clock_set_active),
(gst_clock_is_active), (gst_clock_reset),
(gst_clock_get_event_time_delay):
Make all clock debug in the GST_CAT_CLOCK category.
Add a little extra detail.

* gst/gstelement.c: (gst_element_wait):
Remove extra ' ' in a debug format string.

* gst/gstpad.c: (gst_pad_set_explicit_caps), (gst_pad_pull):
Better debug message when setting explicit caps on an unlinked pad.
Return INTERRUPT event if the peer is unlinked when restarting
during a pad_pull.
2005-03-03 18:39:49 +00:00
Ronald S. Bultje
02cb914495 gst/gstqueue.c: Fix double unlock (#169073).
Original commit message from CVS:
* gst/gstqueue.c: (gst_queue_chain):
Fix double unlock (#169073).
2005-03-03 09:56:26 +00:00
Ronald S. Bultje
cea7e759d2 gst/gstqueue.c: Don't drop buffers on interrupt. Rather, ignore fulness status and preserve stream (#159676).
Original commit message from CVS:
* gst/gstqueue.c: (gst_queue_locked_flush), (gst_queue_chain),
(gst_queue_get), (gst_queue_handle_src_event):
Don't drop buffers on interrupt. Rather, ignore fulness status
and preserve stream (#159676).
(gst_queue_handle_src_query):
Don't go below zero.
2005-03-01 16:29:01 +00:00
Thomas Vander Stichele
c44f710520 fixes for compiling without debug
Original commit message from CVS:
fixes for compiling without debug
2005-02-25 10:31:23 +00:00
Thomas Vander Stichele
99d26b49c2 first commit in the branch to test
Original commit message from CVS:
first commit in the branch to test
2005-02-22 16:23:52 +00:00
Benjamin Otte
232f295af3 gst/: name objects by default, not in gst_element_factory_create. Allows using elements created with g_object_new. (f...
Original commit message from CVS:
* gst/gstelementfactory.c: (gst_element_factory_create):
* gst/gstobject.c: (gst_object_init),
(gst_object_set_name_default), (gst_object_set_name):
name objects by default, not in gst_element_factory_create. Allows
using elements created with g_object_new. (fixes #167283)
2005-02-19 13:02:45 +00:00
Benjamin Otte
70fd76df4f gst/gstinfo.c: make the time that debugging functions print relative to when gst_init was called
Original commit message from CVS:
* gst/gstinfo.c: (_gst_debug_init), (gst_debug_log_default):
make the time that debugging functions print relative to when
gst_init was called
2005-02-19 12:59:45 +00:00
Tim-Philipp Müller
a255e65538 Fix inline docs: tag setter vararg functions are NULL-termianted, GST_TAG_INVALID doesn't exist any more
Original commit message from CVS:
Fix inline docs: tag setter vararg functions are NULL-termianted, GST_TAG_INVALID doesn't exist any more
2005-02-18 20:30:21 +00:00
Thomas Vander Stichele
e3f758f424 flesh out error descriptions
Original commit message from CVS:
flesh out error descriptions
2005-02-11 09:58:31 +00:00
Ronald S. Bultje
6a56e3080d gst/gstthread.c: Implement state-change error handling (#166073).
Original commit message from CVS:
* gst/gstthread.c: (gst_thread_change_state):
Implement state-change error handling (#166073).
2005-02-08 14:04:31 +00:00
Ronald S. Bultje
eb3c38de8c gst/gstqueue.c: Release interrupt after handling (#166250).
Original commit message from CVS:
* gst/gstqueue.c: (gst_queue_chain), (gst_queue_get):
Release interrupt after handling (#166250).
2005-02-08 13:50:44 +00:00
Thomas Vander Stichele
0080630b1a unref data when probe function returns FALSE. Fixes #166362
Original commit message from CVS:
unref data when probe function returns FALSE.  Fixes #166362
2005-02-07 15:39:40 +00:00
Ronald S. Bultje
01a7744a76 gst/gst.c: Fix typo (#166269).
Original commit message from CVS:
* gst/gst.c: (gst_init_get_popt_table):
Fix typo (#166269).
2005-02-05 23:10:05 +00:00