Andy Wingo [Tue, 5 Jul 2005 08:47:40 +0000 (08:47 +0000)]
check/: Application message API change.
Original commit message from CVS:
2005-07-05 Andy Wingo <wingo@pobox.com>
* check/gst/gstbus.c (pound_bus_with_messages):
* check/gst/gstmessage.c (START_TEST):
* check/pipelines/simple_launch_lines.c (got_handoff): Application
message API change.
* gst/base/gstbasetransform.c (gst_base_transform_setcaps): More
logic weaks here: always run transform_caps, trying passthrough
operation only if the original caps intersects with the transform.
* gst/gstpad.c (gst_pad_link_check_compatible_unlocked): Debug
source and sink caps.
* gst/base/gstbasetransform.c (gst_base_transform_getcaps):
Intersect the peer caps with the pad template before going into
transform_caps.
(gst_base_transform_transform_caps): More debugging.
* gst/gstmessage.h (gst_message_new_application): Take a GstObject
src argument.
Edward Hervey [Mon, 4 Jul 2005 15:08:30 +0000 (15:08 +0000)]
gst/gstutils.*: now returns the signal id for better wrapping in bindings.
Original commit message from CVS:
* gst/gstutils.c:
* gst/gstutils.h:
(gst_pad_add_*_probe): now returns the signal id for better wrapping
in bindings.
Andy Wingo [Mon, 4 Jul 2005 09:22:51 +0000 (09:22 +0000)]
check/gst/gstpad.c: Only set explicit caps on pads.
Original commit message from CVS:
2005-07-04 Andy Wingo <wingo@pobox.com>
* check/gst/gstpad.c: Only set explicit caps on pads.
Andy Wingo [Fri, 1 Jul 2005 16:46:59 +0000 (16:46 +0000)]
tests/network-clock.scm: Commentary update.
Original commit message from CVS:
2005-07-01 Andy Wingo <wingo@pobox.com>
* tests/network-clock.scm: Commentary update.
* gst/elements/gstidentity.c (PROP_DUPLICATE): Gone daddy gone.
Didn't really make sense, not implementable with basetransform,
etc.
(gst_identity_transform): Unref inbuf via make_writable. Feeble
attempt at implementing the sync property, needs an unlock method.
* gst/base/gstbasetransform.c (gst_base_transform_transform_caps):
New func, by default returns the same caps (the identity
transformation).
(gst_base_transform_getcaps): Uses transform_caps to return
something sensible.
(gst_base_transform_setcaps): Complicated logic to get caps on
both pads, even if they are different, and to call set_caps once
for every time both pads get their caps set.
(gst_base_transform_handle_buffer): Give the ref to the transform
function. Allows in-place modification of the buffer.
* gst/base/gstbasetransform.h (transform_caps): New class method.
Given caps on one side, what can I do on the other.
(set_caps): Take two caps, one for each side of the element.
* gst/gstpad.h:
* gst/gstpad.c (gst_pad_fixate_caps): Change prototype to modify
caps in place. This is safe because we can check the mutability of
the caps, and a good idea because fixate functions are just called
as a matter of last resort. (Not actually implemented.)
(gst_pad_set_caps): If the caps we're setting is actually the same
as the existing pad caps, just update the pointer without calling
setcaps. Assert that caps is either NULL or fixed, as per the
docs.
* gst/gstghostpad.c: Update for fixate changes.
Jan Schmidt [Fri, 1 Jul 2005 14:36:12 +0000 (14:36 +0000)]
gst/gstpad.c: Put the mini_object into GValue as a mini_object, not a gpointer.
Original commit message from CVS:
2005-07-02 Jan Schmidt <thaytan@mad.scientist.com>
* gst/gstpad.c: (gst_pad_emit_have_data_signal):
Put the mini_object into GValue as a mini_object,
not a gpointer.
Ronald S. Bultje [Fri, 1 Jul 2005 14:20:19 +0000 (14:20 +0000)]
examples/pwg/Makefile.am: Fix buildbot again.
Original commit message from CVS:
* examples/pwg/Makefile.am:
Fix buildbot again.
Ronald S. Bultje [Fri, 1 Jul 2005 13:01:47 +0000 (13:01 +0000)]
docs/pwg/building-testapp.xml: Add extra check.
Original commit message from CVS:
* docs/pwg/building-testapp.xml:
Add extra check.
* examples/pwg/Makefile.am:
Fix buildbot.
Ronald S. Bultje [Fri, 1 Jul 2005 12:43:03 +0000 (12:43 +0000)]
Enable building the PWG examples.
Original commit message from CVS:
* configure.ac:
* examples/Makefile.am:
* examples/pwg/Makefile.am:
* examples/pwg/extract.pl:
Enable building the PWG examples.
* docs/pwg/advanced-interfaces.xml:
Add URI interface stub.
* docs/pwg/advanced-types.xml:
* docs/pwg/other-autoplugger.xml:
* docs/pwg/appendix-porting.xml:
* docs/pwg/pwg.xml:
Add porting guide (mostly stubs), remove autoplugging (see ADM).
* docs/pwg/building-boiler.xml:
* docs/pwg/building-chainfn.xml:
* docs/pwg/building-pads.xml:
* docs/pwg/building-props.xml:
* docs/pwg/building-state.xml:
* docs/pwg/building-testapp.xml:
Update the building-*.xml parts for 0.9 changes. All examples
code blocks compile in examples/pwg/*.
Ronald S. Bultje [Thu, 30 Jun 2005 12:32:17 +0000 (12:32 +0000)]
docs/manual/: Fix playbin/decodebin examples, update docs a bit, mention bus instead of signals in various places, me...
Original commit message from CVS:
* docs/manual/advanced-autoplugging.xml:
* docs/manual/appendix-checklist.xml:
* docs/manual/appendix-integration.xml:
* docs/manual/highlevel-components.xml:
Fix playbin/decodebin examples, update docs a bit, mention bus
instead of signals in various places, mention kmplayer and
kaffeine since they have a working GStreamer backend in the KDE
section.
Thomas Vander Stichele [Thu, 30 Jun 2005 12:26:26 +0000 (12:26 +0000)]
debug disable fixes
Original commit message from CVS:
debug disable fixes
Wim Taymans [Thu, 30 Jun 2005 12:18:19 +0000 (12:18 +0000)]
Added CHANGES-0.9 doc, updated status of other docs.
Original commit message from CVS:
* CHANGES-0.9:
* docs/design/draft-ghostpads.txt:
* docs/design/draft-push-pull.txt:
* docs/design/draft-query.txt:
* docs/design/part-TODO.txt:
* docs/design/part-query.txt:
Added CHANGES-0.9 doc, updated status of other docs.
* gst/gstquery.h:
Remove "hmm" macro
Wim Taymans [Thu, 30 Jun 2005 12:14:47 +0000 (12:14 +0000)]
gst/base/gstbasesink.*: Some tweaks, only EOS and a buffer complete a preroll.
Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_base_sink_preroll_queue_empty),
(gst_base_sink_preroll_queue_flush), (gst_base_sink_handle_object),
(gst_base_sink_change_state):
* gst/base/gstbasesink.h:
Some tweaks, only EOS and a buffer complete a preroll.
Andy Wingo [Thu, 30 Jun 2005 11:39:34 +0000 (11:39 +0000)]
gst/gstghostpad.c (gst_ghost_pad_do_activate_push): Proxy activate_push down to the internal pad as well.
Original commit message from CVS:
2005-06-30 Andy Wingo <wingo@pobox.com>
* gst/gstghostpad.c (gst_ghost_pad_do_activate_push): Proxy
activate_push down to the internal pad as well.
Ronald S. Bultje [Thu, 30 Jun 2005 10:59:34 +0000 (10:59 +0000)]
gst/gsttaginterface.c: Some documentation fixes (#307394 and #307397).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gsttaginterface.c:
Some documentation fixes (#307394 and #307397).
Thomas Vander Stichele [Thu, 30 Jun 2005 10:23:16 +0000 (10:23 +0000)]
ignore more
Original commit message from CVS:
ignore more
Thomas Vander Stichele [Thu, 30 Jun 2005 10:22:15 +0000 (10:22 +0000)]
go back to the circular dependency for now
Original commit message from CVS:
go back to the circular dependency for now
Ronald S. Bultje [Thu, 30 Jun 2005 10:10:00 +0000 (10:10 +0000)]
gst/gstvalue.c: Fix memleak (#309125).
Original commit message from CVS:
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstvalue.c: (gst_value_intersect_list):
Fix memleak (#309125).
Ronald S. Bultje [Thu, 30 Jun 2005 09:59:27 +0000 (09:59 +0000)]
docs/manual/advanced-dataaccess.xml: Fix fakesrc example to compile; doesn't work, bug somewhere...?
Original commit message from CVS:
* docs/manual/advanced-dataaccess.xml:
Fix fakesrc example to compile; doesn't work, bug somewhere...?
* docs/manual/basics-pads.xml:
Add reference for filtered caps to above chapter.
Wim Taymans [Thu, 30 Jun 2005 09:41:15 +0000 (09:41 +0000)]
gst/gstbin.c: Lame attempt at making the state change function a bit more readable.
Original commit message from CVS:
* gst/gstbin.c: (clear_queue), (remove_all_from_queue),
(gst_bin_change_state):
Lame attempt at making the state change function a bit
more readable.
Wim Taymans [Thu, 30 Jun 2005 09:33:45 +0000 (09:33 +0000)]
docs/design/: Some more tweeks and additions to the docs.
Original commit message from CVS:
* docs/design/part-clocks.txt:
* docs/design/part-element-sink.txt:
* docs/design/part-events.txt:
* docs/design/part-preroll.txt:
* docs/design/part-states.txt:
Some more tweeks and additions to the docs.
Wim Taymans [Thu, 30 Jun 2005 09:23:54 +0000 (09:23 +0000)]
gst/: Removed atomic operations, use existing LOCK.
Original commit message from CVS:
* gst/gstpad.c: (_gst_do_pass_data_accumulator),
(default_have_data), (gst_pad_class_init), (gst_pad_init),
(gst_pad_emit_have_data_signal), (gst_pad_chain), (gst_pad_push),
(gst_pad_check_pull_range), (gst_pad_get_range),
(gst_pad_pull_range), (gst_pad_push_event), (gst_pad_send_event):
* gst/gstpad.h:
* gst/gstutils.c: (gst_atomic_int_set), (gst_pad_add_data_probe),
(gst_pad_add_event_probe), (gst_pad_add_buffer_probe),
(gst_pad_remove_data_probe), (gst_pad_remove_event_probe),
(gst_pad_remove_buffer_probe):
Removed atomic operations, use existing LOCK.
Move exception handling out of main code path.
Thomas Vander Stichele [Thu, 30 Jun 2005 07:45:55 +0000 (07:45 +0000)]
drop circular reference
Original commit message from CVS:
drop circular reference
Ronald S. Bultje [Wed, 29 Jun 2005 19:20:07 +0000 (19:20 +0000)]
gst/gstpad.c: Fix accumulator, add default value by using _emitv() instead of _emit() for signal emission.
Original commit message from CVS:
* gst/gstpad.c: (_gst_do_pass_data_accumulator),
(silly_return_true_function), (gst_pad_class_init),
(gst_pad_emit_have_data_signal), (gst_pad_chain), (gst_pad_push),
(gst_pad_get_range), (gst_pad_pull_range), (gst_pad_push_event),
(gst_pad_send_event):
Fix accumulator, add default value by using _emitv() instead
of _emit() for signal emission.
Ronald S. Bultje [Wed, 29 Jun 2005 16:57:59 +0000 (16:57 +0000)]
Add probe example.
Original commit message from CVS:
* docs/manual/advanced-dataaccess.xml:
* examples/manual/Makefile.am:
Add probe example.
* gst/gstpad.c: (_gst_do_pass_data_accumulator):
Make work (??).
Thomas Vander Stichele [Wed, 29 Jun 2005 16:45:58 +0000 (16:45 +0000)]
fix for ppc, hopefully
Original commit message from CVS:
fix for ppc, hopefully
Tim-Philipp Müller [Wed, 29 Jun 2005 16:11:12 +0000 (16:11 +0000)]
gst/elements/gstfilesink.c: Simplify code so that we don't have to handle short writes and return GST_FLOW_ERROR if a...
Original commit message from CVS:
* gst/elements/gstfilesink.c: (gst_filesink_render):
Simplify code so that we don't have to handle short
writes and return GST_FLOW_ERROR if an error occured.
Ronald S. Bultje [Wed, 29 Jun 2005 16:05:26 +0000 (16:05 +0000)]
docs/gst/gstreamer-docs.sgml: Remove probes more.
Original commit message from CVS:
* docs/gst/gstreamer-docs.sgml:
Remove probes more.
Ronald S. Bultje [Wed, 29 Jun 2005 15:51:25 +0000 (15:51 +0000)]
Remove old probes, add new g-signal-based probes and some utility functions.
Original commit message from CVS:
* docs/gst/gstreamer-sections.txt:
* docs/gst/tmpl/gstpad.sgml:
* docs/gst/tmpl/gstprobe.sgml:
* gst/Makefile.am:
* gst/gstpad.c: (_gst_do_pass_data_accumulator),
(gst_pad_class_init), (gst_pad_init), (gst_pad_chain),
(gst_pad_push), (gst_pad_get_range), (gst_pad_pull_range),
(gst_pad_push_event), (gst_pad_send_event):
* gst/gstpad.h:
* gst/gstutils.c: (gst_pad_add_data_probe),
(gst_pad_add_event_probe), (gst_pad_add_buffer_probe),
(gst_pad_remove_data_probe), (gst_pad_remove_event_probe),
(gst_pad_remove_buffer_probe):
* gst/gstutils.h:
Remove old probes, add new g-signal-based probes and some utility
functions.
Edward Hervey [Wed, 29 Jun 2005 15:17:25 +0000 (15:17 +0000)]
gst/: Moved gst_element_factory_can_[sink|src]_caps() to gstutils and added the definition to the header file.
Original commit message from CVS:
* gst/gstelementfactory.c:
* gst/gstutils.h:
* gst/gstutils.c:
Moved gst_element_factory_can_[sink|src]_caps() to gstutils and added
the definition to the header file.
Andy Wingo [Wed, 29 Jun 2005 14:56:08 +0000 (14:56 +0000)]
docs/gst/Makefile.am (scan-build.stamp): Totally only check plugins from the source directory.
Original commit message from CVS:
2005-06-29 Andy Wingo <wingo@pobox.com>
* docs/gst/Makefile.am (scan-build.stamp): Totally only check
plugins from the source directory.
Wim Taymans [Wed, 29 Jun 2005 14:52:44 +0000 (14:52 +0000)]
docs/gst/tmpl/: Some fixings for blantently wrong text.
Original commit message from CVS:
* docs/gst/tmpl/gstbuffer.sgml:
* docs/gst/tmpl/gstclock.sgml:
Some fixings for blantently wrong text.
Thomas Vander Stichele [Wed, 29 Jun 2005 12:40:39 +0000 (12:40 +0000)]
logic was reversed, duh
Original commit message from CVS:
logic was reversed, duh
Thomas Vander Stichele [Wed, 29 Jun 2005 12:25:05 +0000 (12:25 +0000)]
add A GST_PLUGIN_PATH_ONLY env var; if it is set, it will only scan the GST_PLUGIN_PATH locations, and not add system...
Original commit message from CVS:
* check/Makefile.am:
* gst/gst.c: (add_path_func), (init_pre):
* gst/gstregistry.c: (gst_registry_add_path):
add A GST_PLUGIN_PATH_ONLY env var; if it is set, it will
only scan the GST_PLUGIN_PATH locations, and not add
system locations
Thomas Vander Stichele [Wed, 29 Jun 2005 12:23:35 +0000 (12:23 +0000)]
doc fixes
Original commit message from CVS:
doc fixes
Ronald S. Bultje [Wed, 29 Jun 2005 12:02:13 +0000 (12:02 +0000)]
docs/manual/advanced-autoplugging.xml: Fix autoplugging example.
Original commit message from CVS:
* docs/manual/advanced-autoplugging.xml:
Fix autoplugging example.
Ronald S. Bultje [Wed, 29 Jun 2005 11:46:16 +0000 (11:46 +0000)]
docs/manual/: Try to get autoplugging working, fix type detection. Fix text in hello-world image.
Original commit message from CVS:
* docs/manual/advanced-autoplugging.xml:
* docs/manual/mime-world.fig:
Try to get autoplugging working, fix type detection. Fix text
in hello-world image.
Wim Taymans [Wed, 29 Jun 2005 11:10:44 +0000 (11:10 +0000)]
gst/base/gstbasesink.c: Small debug line.
Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_base_sink_handle_object),
(gst_base_sink_change_state):
Small debug line.
* gst/gstclock.h:
map SIGNAL and BROADCAST to the right function.
* gst/gstobject.h:
Remove redundant braces.
* gst/gstpad.c: (gst_pad_set_caps):
Don't call setcaps function when reseting caps to NULL.
* gst/gstsystemclock.c: (gst_system_clock_dispose),
(gst_system_clock_async_thread), (gst_system_clock_id_wait_async),
(gst_system_clock_id_unschedule):
Use BROADCAST as this is what we do.
Wim Taymans [Wed, 29 Jun 2005 10:24:08 +0000 (10:24 +0000)]
gst/base/gstbasesink.c: We are actually prerolling before commiting the state change.
Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_base_sink_handle_object):
We are actually prerolling before commiting the state
change.
Ronald S. Bultje [Wed, 29 Jun 2005 09:25:51 +0000 (09:25 +0000)]
docs/manual/: Update (until threads/scheduling) Application Development Manual; remove GstThread, add GstBus, add sim...
Original commit message from CVS:
* docs/manual/advanced-clocks.xml:
* docs/manual/advanced-interfaces.xml:
* docs/manual/advanced-metadata.xml:
* docs/manual/advanced-position.xml:
* docs/manual/advanced-schedulers.xml:
* docs/manual/advanced-threads.xml:
* docs/manual/appendix-porting.xml:
* docs/manual/basics-bins.xml:
* docs/manual/basics-bus.xml:
* docs/manual/basics-elements.xml:
* docs/manual/basics-helloworld.xml:
* docs/manual/basics-pads.xml:
* docs/manual/highlevel-components.xml:
* docs/manual/manual.xml:
* docs/manual/thread.fig:
Update (until threads/scheduling) Application Development Manual;
remove GstThread, add GstBus, add simple porting checklist, add
documentation for tag writing, clocks, make all examples until this
part compile and run.
* examples/manual/Makefile.am:
Update from changes to Application Development Manual; add bus
example, remove thread example.
Wim Taymans [Tue, 28 Jun 2005 19:45:26 +0000 (19:45 +0000)]
gst/gstbus.c: Add debugging messages.
Original commit message from CVS:
* gst/gstbus.c: (gst_bus_post), (gst_bus_have_pending),
(gst_bus_set_flushing), (gst_bus_pop), (gst_bus_peek),
(gst_bus_source_dispatch):
Add debugging messages.
Make internal methods static.
Handle the case where the bus is flushed in the handler.
* gst/gstelement.c: (gst_element_get_bus):
Fix refcount in _get_bus();
* gst/gstpipeline.c: (gst_pipeline_change_state),
(gst_pipeline_get_clock_func):
Clock refcounting fixes.
Handle the case where preroll timed out more gracefully.
* gst/gstsystemclock.c: (gst_system_clock_dispose):
Clean up the internal thread in dispose. This is needed
for subclasses that actually get disposed.
* gst/schedulers/threadscheduler.c:
(gst_thread_scheduler_class_init), (gst_thread_scheduler_func),
(gst_thread_scheduler_dispose):
Free thread pool in dispose.
Andy Wingo [Tue, 28 Jun 2005 16:57:27 +0000 (16:57 +0000)]
tests/network-clock-utils.scm (debug, print-event): New utils.
Original commit message from CVS:
2005-06-28 Andy Wingo <wingo@pobox.com>
* tests/network-clock-utils.scm (debug, print-event): New utils.
* tests/network-clock.scm (*debug*, *with-graph*): New parameters.
(*packet-loss*): Unified loss probability.
(network-time): Report out-of-band events.
* tests/plot-data: Add support for out-of-band events. Hack it
into this script instead of passing it down the pipe; should fix
this later.
Wim Taymans [Tue, 28 Jun 2005 15:36:37 +0000 (15:36 +0000)]
docs/gst/: Docs fixes.
Original commit message from CVS:
* docs/gst/gstreamer.types:
* docs/gst/tmpl/gstbasesrc.sgml:
* docs/gst/tmpl/gstpad.sgml:
Docs fixes.
Wim Taymans [Tue, 28 Jun 2005 13:40:12 +0000 (13:40 +0000)]
gst/gstghostpad.c: Correctly proxy the check_pull_range function.
Original commit message from CVS:
* gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
(gst_proxy_pad_do_checkgetrange), (gst_proxy_pad_do_acceptcaps),
(gst_proxy_pad_do_fixatecaps):
Correctly proxy the check_pull_range function.
Thomas Vander Stichele [Tue, 28 Jun 2005 12:45:21 +0000 (12:45 +0000)]
fix fake elements too
Original commit message from CVS:
fix fake elements too
Thomas Vander Stichele [Tue, 28 Jun 2005 12:01:49 +0000 (12:01 +0000)]
did s/bases(rc/ink)_/base_s(rc/ink)_/; wim wants to remove base completely, but that's for later
Original commit message from CVS:
did s/bases(rc/ink)_/base_s(rc/ink)_/; wim wants to remove base completely, but that's for later
Andy Wingo [Tue, 28 Jun 2005 11:48:57 +0000 (11:48 +0000)]
tests/network-clock.scm: Removed need for slib.
Original commit message from CVS:
2005-06-28 Andy Wingo <wingo@pobox.com>
* tests/network-clock.scm: Removed need for slib.
Wim Taymans [Tue, 28 Jun 2005 11:36:43 +0000 (11:36 +0000)]
gst/: The deprecated pad loop function is removed now.
Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_basesink_set_pad_functions),
(gst_basesink_preroll_queue_flush):
* gst/base/gstbasesrc.c: (gst_basesrc_set_dataflow_funcs):
* gst/elements/gsttee.c: (gst_tee_update_pad_functions):
* gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
(gst_proxy_pad_do_acceptcaps), (gst_proxy_pad_do_fixatecaps),
(gst_proxy_pad_set_property):
* gst/gstpad.c:
* gst/gstpad.h:
* gst/gstqueue.c: (gst_queue_init):
The deprecated pad loop function is removed now.
Andy Wingo [Tue, 28 Jun 2005 11:33:22 +0000 (11:33 +0000)]
tests/network-clock.scm (*timeout*, *send-loss*, *recv-loss*): New parameters, simulate network packet loss.
Original commit message from CVS:
2005-06-28 Andy Wingo <wingo@pobox.com>
* tests/network-clock.scm (*timeout*, *send-loss*, *recv-loss*):
New parameters, simulate network packet loss.
* tests/network-clock-utils.scm: Initialize the RNG.
Wim Taymans [Tue, 28 Jun 2005 11:02:18 +0000 (11:02 +0000)]
gst/base/gstbasesink.c: Flushing the preroll queue always needs to unlock the waiters.
Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_basesink_preroll_queue_flush),
(gst_basesink_event), (gst_basesink_deactivate):
Flushing the preroll queue always needs to unlock the waiters.
Edward Hervey [Tue, 28 Jun 2005 10:45:48 +0000 (10:45 +0000)]
gst/gstpipeline.c: Wheen a seek was successful on a pipeline, set the stream_time to the seek offset in order to have...
Original commit message from CVS:
* gst/gstpipeline.c: (gst_pipeline_send_event):
Wheen a seek was successful on a pipeline, set the stream_time to the
seek offset in order to have a synchronized stream_time.
Wim Taymans [Tue, 28 Jun 2005 10:37:24 +0000 (10:37 +0000)]
gst/gstghostpad.c: Call wrapper function instead of just calling the function pointers. This takes care of any lockin...
Original commit message from CVS:
* gst/gstghostpad.c: (gst_proxy_pad_do_bufferalloc),
(gst_proxy_pad_do_getrange), (gst_proxy_pad_do_checkgetrange),
(gst_proxy_pad_do_getcaps), (gst_proxy_pad_do_acceptcaps),
(gst_proxy_pad_do_fixatecaps):
Call wrapper function instead of just calling the function
pointers. This takes care of any locking and whatmore.
Wim Taymans [Tue, 28 Jun 2005 10:28:31 +0000 (10:28 +0000)]
gst/gstpad.*: CONNECTED -> LINKED.
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_push),
(gst_pad_pull_range):
* gst/gstpad.h:
CONNECTED -> LINKED.
Andy Wingo [Tue, 28 Jun 2005 09:59:01 +0000 (09:59 +0000)]
*.c: Don't cast to GST_OBJECT when reffing or unreffing. Large source-munging commit!!!
Original commit message from CVS:
2005-06-28 Andy Wingo <wingo@pobox.com>
* *.c: Don't cast to GST_OBJECT when reffing or unreffing. Large
source-munging commit!!!
Andy Wingo [Tue, 28 Jun 2005 09:17:14 +0000 (09:17 +0000)]
gst/gstobject.c (gst_object_unref, gst_object_ref)
Original commit message from CVS:
2005-06-28 Andy Wingo <wingo@pobox.com>
* gst/gstobject.c (gst_object_unref, gst_object_ref)
(gst_object_sink): Take gpointer arguments, not GstObject --
avoids casts. Like GLib.
Andy Wingo [Tue, 28 Jun 2005 08:41:43 +0000 (08:41 +0000)]
gst/gstghostpad.c (gst_proxy_pad_do_activate): Don't proxy activate.
Original commit message from CVS:
2005-06-28 Andy Wingo <wingo@pobox.com>
* gst/gstghostpad.c (gst_proxy_pad_do_activate): Don't proxy
activate.
Andy Wingo [Mon, 27 Jun 2005 18:39:41 +0000 (18:39 +0000)]
shut up gcc3
Original commit message from CVS:
shut up gcc3
Andy Wingo [Mon, 27 Jun 2005 18:35:05 +0000 (18:35 +0000)]
gst/base/gsttypefindhelper.c (gst_type_find_helper): Unref any remaining buffer.
Original commit message from CVS:
2005-06-27 Andy Wingo <wingo@pobox.com>
* gst/base/gsttypefindhelper.c (gst_type_find_helper): Unref any
remaining buffer.
* gst/gsttrace.c (gst_alloc_trace_list_sorted): New helper,
returns a sorted copy of the trace list.
(gst_alloc_trace_print_live): New API, only prints traces with
live objects. Sort the list.
(gst_alloc_trace_print_all): Sort the list.
(gst_alloc_trace_print): Align columns.
* gst/elements/gstttypefindelement.c:
* gst/elements/gsttee.c:
* gst/base/gstbasesrc.c:
* gst/base/gstbasesink.c:
* gst/base/gstbasetransform.c:
* gst/gstqueue.c: Adapt for pad activation changes.
* gst/gstpipeline.c (gst_pipeline_init): Unref after parenting
sched.
(gst_pipeline_dispose): Drop ref on sched.
* gst/gstpad.c (gst_pad_init): Set the default activate func.
(gst_pad_activate_default): Push mode by default.
(pre_activate_switch, post_activate_switch): New stubs, things to
do before and after switching activation modes on pads.
(gst_pad_set_active): Take a boolean and not a mode, dispatch to
the pad's activate function to choose which mode to activate.
Shortcut on deactivation and call the right function directly.
(gst_pad_activate_pull): New API, (de)activates a pad in pull
mode.
(gst_pad_activate_push): New API, same for push mode.
(gst_pad_set_activate_function)
(gst_pad_set_activatepull_function)
(gst_pad_set_activatepush_function): Setters for new API.
* gst/gstminiobject.c (gst_mini_object_new, gst_mini_object_free):
Trace all miniobjects.
(gst_mini_object_make_writable): Unref the arg if we copy, like
gst_caps_make_writable.
* gst/gstmessage.c (_gst_message_initialize): No trace init.
* gst/gstghostpad.c (gst_proxy_pad_do_activate)
(gst_proxy_pad_do_activatepull, gst_proxy_pad_do_activatepush):
Adapt for new pad API.
* gst/gstevent.c (_gst_event_initialize): Don't initialize trace.
* gst/gstelement.h:
* gst/gstelement.c (gst_element_iterate_src_pads)
(gst_element_iterate_sink_pads): New API functions.
* gst/gstelement.c (iterator_fold_with_resync): New utility,
should fold into gstiterator.c in some form.
(gst_element_pads_activate): Simplified via use of fold and
delegation of decisions to gstpad->activate.
* gst/gstbus.c (gst_bus_source_finalize): Set the bus to NULL,
help in debugging.
* gst/gstbuffer.c (_gst_buffer_initialize): Ref the buffer type
class once in init, like gstmessage. Didn't run into this issue
but it seems correct. Don't initialize a trace, gstminiobject does
that.
* check/pipelines/simple_launch_lines.c (test_stop_from_app): New
test, runs fakesrc ! fakesink, stopping on ::handoff via a message
to the bus.
(assert_live_count): New util function, uses alloc traces to check
cleanup.
* check/gst/gstghostpad.c (test_ghost_pads): More refcount checks.
To be modified when unlink drops the internal pad.
Wim Taymans [Mon, 27 Jun 2005 18:11:24 +0000 (18:11 +0000)]
gst/gstbin.c: Cleanup the get_state() function a little, make sure it iterates the same set of elements.
Original commit message from CVS:
* gst/gstbin.c: (gst_bin_get_state), (gst_bin_iterate_state_order),
(gst_bin_change_state):
Cleanup the get_state() function a little, make sure it
iterates the same set of elements.
Added stub iterate_state_order().
Thomas Vander Stichele [Mon, 27 Jun 2005 14:40:09 +0000 (14:40 +0000)]
adding basetransform and iterator docs
Original commit message from CVS:
adding basetransform and iterator docs
Andy Wingo [Mon, 27 Jun 2005 13:25:44 +0000 (13:25 +0000)]
docs/design/part-activation.txt: Notes on how activation should work -- not quite implemented yet.
Original commit message from CVS:
2005-06-27 Andy Wingo <wingo@pobox.com>
* docs/design/part-activation.txt: Notes on how activation should
work -- not quite implemented yet.
Thomas Vander Stichele [Mon, 27 Jun 2005 08:54:16 +0000 (08:54 +0000)]
remove stuff that isn't there anymore
Original commit message from CVS:
remove stuff that isn't there anymore
Thomas Vander Stichele [Mon, 27 Jun 2005 08:16:51 +0000 (08:16 +0000)]
more doc and whitespace fixes
Original commit message from CVS:
more doc and whitespace fixes
Wim Taymans [Sat, 25 Jun 2005 19:53:02 +0000 (19:53 +0000)]
gst/gstghostpad.c: At least get the chain function correct, needs more fixing.
Original commit message from CVS:
* gst/gstghostpad.c: (gst_proxy_pad_do_chain):
At least get the chain function correct, needs more
fixing.
Wim Taymans [Sat, 25 Jun 2005 19:37:59 +0000 (19:37 +0000)]
gst/: Right, two problems here: ghostpads don't take locks and glib _rec_mutex_lock_full() with depth==0 still locks.
Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
(gst_basesink_handle_object), (gst_basesink_event),
(gst_basesink_do_sync), (gst_basesink_handle_event),
(gst_basesink_change_state):
* gst/gsttask.h:
Right, two problems here: ghostpads don't take locks and
glib _rec_mutex_lock_full() with depth==0 still locks.
Catch illegal locking and g_warn them.
Wim Taymans [Sat, 25 Jun 2005 19:14:51 +0000 (19:14 +0000)]
check/states/sinks.c: Have to check for completion now...
Original commit message from CVS:
* check/states/sinks.c: (START_TEST), (gst_object_suite):
Have to check for completion now...
Wim Taymans [Sat, 25 Jun 2005 19:09:28 +0000 (19:09 +0000)]
gst/: Unlock STREAM_LOCK whatever the recursion was.
Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_basesink_preroll_queue_empty),
(gst_basesink_handle_object), (gst_basesink_event),
(gst_basesink_do_sync), (gst_basesink_handle_event),
(gst_basesink_change_state):
* gst/gstpad.h:
Unlock STREAM_LOCK whatever the recursion was.
Wim Taymans [Sat, 25 Jun 2005 17:54:58 +0000 (17:54 +0000)]
gst/base/gstbasesink.c: Reworked the base sink, handle event and buffer serialisation correctly and removed possible ...
Original commit message from CVS:
* gst/base/gstbasesink.c: (gst_basesink_set_property),
(gst_basesink_preroll_queue_empty),
(gst_basesink_preroll_queue_flush), (gst_basesink_handle_object),
(gst_basesink_event), (gst_basesink_do_sync),
(gst_basesink_handle_event), (gst_basesink_handle_buffer),
(gst_basesink_chain), (gst_basesink_loop), (gst_basesink_activate),
(gst_basesink_change_state):
Reworked the base sink, handle event and buffer serialisation
correctly and removed possible deadlock.
Handle EOS correctly.
Wim Taymans [Sat, 25 Jun 2005 17:51:12 +0000 (17:51 +0000)]
Allow elements to post EOS in the state change function.
Original commit message from CVS:
* gst/gstpipeline.c: (is_eos), (pipeline_bus_handler),
(gst_pipeline_change_state):
* tools/gst-launch.c: (check_intr), (event_loop), (main):
Allow elements to post EOS in the state change function.
Fix up -launch, make it exit the poll loop when the
pipeline actually changed state.
Fix up warning parsing in -launch.
Wim Taymans [Sat, 25 Jun 2005 17:44:39 +0000 (17:44 +0000)]
gst/elements/gsttee.c: Core takes STREAM_LOCK for us now.
Original commit message from CVS:
* gst/elements/gsttee.c: (gst_tee_chain), (gst_tee_loop),
(gst_tee_sink_activate):
Core takes STREAM_LOCK for us now.
Wim Taymans [Sat, 25 Jun 2005 17:42:17 +0000 (17:42 +0000)]
gst/: Keep track of current target state while performing a state change so that subclasses can do something interest...
Original commit message from CVS:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_set_state):
* gst/gstelement.h:
* gst/gstmessage.c: (gst_message_parse_error),
(gst_message_parse_warning):
Keep track of current target state while performing a state
change so that subclasses can do something interesting.
Fix parsing of warning/error messages when GError is NULL.
Thomas Vander Stichele [Fri, 24 Jun 2005 18:16:14 +0000 (18:16 +0000)]
start pulling in base classes and elements for docs
Original commit message from CVS:
start pulling in base classes and elements for docs
Stefan Kost [Fri, 24 Jun 2005 07:49:40 +0000 (07:49 +0000)]
fixed make distcheck with gtk-doc 1.3
Original commit message from CVS:
fixed make distcheck with gtk-doc 1.3
Wim Taymans [Thu, 23 Jun 2005 17:11:49 +0000 (17:11 +0000)]
gst/gstelement.c: When the state did not change, also report NO_PREROLL when it matters.
Original commit message from CVS:
* gst/gstelement.c: (gst_element_get_state_func),
(gst_element_set_state), (gst_element_change_state):
When the state did not change, also report NO_PREROLL
when it matters.
Wim Taymans [Thu, 23 Jun 2005 17:09:21 +0000 (17:09 +0000)]
gst/: No unsafe task pausing please.
Original commit message from CVS:
* gst/gstpad.c: (gst_pad_event_default):
* gst/gstqueue.c: (gst_queue_loop):
No unsafe task pausing please.
Wim Taymans [Thu, 23 Jun 2005 17:07:08 +0000 (17:07 +0000)]
gst/schedulers/threadscheduler.c: Ref the task before pushing it on the threadpool. This makes sure that we have a re...
Original commit message from CVS:
* gst/schedulers/threadscheduler.c:
(gst_thread_scheduler_task_start),
(gst_thread_scheduler_task_pause), (gst_thread_scheduler_func):
Ref the task before pushing it on the threadpool. This
makes sure that we have a ref when the threadfunction is
actually called.
Andy Wingo [Thu, 23 Jun 2005 15:26:09 +0000 (15:26 +0000)]
gst/base/gstbasesrc.c (gst_basesrc_get_range): Check if the offset is greater than the file's size.
Original commit message from CVS:
2005-06-23 Andy Wingo <wingo@pobox.com>
* gst/base/gstbasesrc.c (gst_basesrc_get_range): Check if the
offset is greater than the file's size.
Andy Wingo [Thu, 23 Jun 2005 15:04:48 +0000 (15:04 +0000)]
gst/gstobject.h (GST_CLASS_LOCK, GST_CLASS_TRYLOCK) (GST_CLASS_UNLOCK, GST_CLASS_GET_LOCK, GstObjectClass)
Original commit message from CVS:
2005-06-23 Andy Wingo <wingo@pobox.com>
* gst/gstobject.h (GST_CLASS_LOCK, GST_CLASS_TRYLOCK)
(GST_CLASS_UNLOCK, GST_CLASS_GET_LOCK, GstObjectClass)
* gst/gstobject.c (gst_object_class_init): Make the class lock
recursive. Wim won't let me drop deep_notify. Decodebin works
again, whoopdy doo.
Andy Wingo [Thu, 23 Jun 2005 14:18:15 +0000 (14:18 +0000)]
gst/gstghostpad.c (on_int_notify): Catches notify::caps on the internal pad, and hacks accordingly. Doesn't do it on ...
Original commit message from CVS:
2005-06-23 Andy Wingo <wingo@pobox.com>
* gst/gstghostpad.c (on_int_notify): Catches notify::caps on the
internal pad, and hacks accordingly. Doesn't do it on the target
pad because we change its caps. Probably catches all cases of
interest tho.
(gst_ghost_pad_set_property): Connect to notify::caps as
appropritate.
Andy Wingo [Thu, 23 Jun 2005 13:20:44 +0000 (13:20 +0000)]
tests/network-clock.scm (plot-simulation): Pipe data to the elite python skript.
Original commit message from CVS:
2005-06-23 Andy Wingo <wingo@pobox.com>
* tests/network-clock.scm (plot-simulation): Pipe data to the
elite python skript.
* tests/network-clock-utils.scm (define-parameter): New macro,
defines a parameter that can be set via the command line.
(set-parameter!, parse-parameter-arguments): Command line args
parser.
* tests/plot-data: Simple matplotlib-based plotter, takes input on
stdin.
Thomas Vander Stichele [Thu, 23 Jun 2005 13:20:00 +0000 (13:20 +0000)]
add more important documentation
Original commit message from CVS:
add more important documentation
Jan Schmidt [Thu, 23 Jun 2005 11:43:39 +0000 (11:43 +0000)]
gst/elements/gsttypefindelement.c: Don't restart typefinding on a discont.
Original commit message from CVS:
2005-06-23 Jan Schmidt <thaytan@mad.scientist.com>
* gst/elements/gsttypefindelement.c:
(gst_type_find_element_handle_event):
Don't restart typefinding on a discont.
* gst/gstelement.c: (gst_element_set_state):
Debug spelling fix.
* gst/gstpad.c: (gst_pad_set_active), (gst_pad_send_event):
Allow changing mode of an active pad.
Debug output fixes.
* gst/registries/gstlibxmlregistry.c: (load_feature):
Don't cast a static pad template to a normal pad template.
Thomas Vander Stichele [Thu, 23 Jun 2005 11:25:29 +0000 (11:25 +0000)]
remove gst_strtoll completely, since it didn't actually do anything more than what g_ascii_strtoull already does.
Original commit message from CVS:
* check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
* gst/gstvalue.c: (gst_value_deserialize_int_helper):
remove gst_strtoll completely, since it didn't actually do
anything more than what g_ascii_strtoull already does.
check for range errors when deserializing
do a cast for the unsigned cases; but further fixing needs
a decision on what the interpretation of "(int)" and
deserialization should be for values that fall outside the
type's boundaries (ie, refuse, or interpret as casting)
Wim Taymans [Thu, 23 Jun 2005 10:37:09 +0000 (10:37 +0000)]
Added support for live sources and other elements that cannot do preroll.
Original commit message from CVS:
Added support for live sources and other elements that
cannot do preroll.
Updated design docs, added live-source design doc.
Implemented live source functionality in basesrc
Fix error condition in _bin_get_state()
Implement live source handling in -launch.
Added check for live sources.
Fixed case in GstBin where elements were changed state
multiple times.
Andy Wingo [Thu, 23 Jun 2005 09:59:33 +0000 (09:59 +0000)]
check/gst/gstpad.c (test_get_allowed_caps, test_refcount): Fix borken refcounting.
Original commit message from CVS:
2005-06-23 Andy Wingo <wingo@pobox.com>
* check/gst/gstpad.c (test_get_allowed_caps, test_refcount): Fix
borken refcounting.
Andy Wingo [Thu, 23 Jun 2005 09:41:41 +0000 (09:41 +0000)]
commit the file
Original commit message from CVS:
commit the file
Andy Wingo [Thu, 23 Jun 2005 09:41:09 +0000 (09:41 +0000)]
gst/gstpad.c (gst_pad_set_caps): Remove needless refs, gst_caps_replace takes care of this for us.
Original commit message from CVS:
2005-06-23 Andy Wingo <wingo@pobox.com>
* gst/gstpad.c (gst_pad_set_caps): Remove needless refs,
gst_caps_replace takes care of this for us.
Andy Wingo [Thu, 23 Jun 2005 09:28:27 +0000 (09:28 +0000)]
gst/gstghostpad.c (gst_proxy_pad_do_setcaps): Call the full gst_pad_set_caps on the target, not just its setcaps() fu...
Original commit message from CVS:
2005-06-23 Andy Wingo <wingo@pobox.com>
* gst/gstghostpad.c (gst_proxy_pad_do_setcaps): Call the full
gst_pad_set_caps on the target, not just its setcaps() function.
Andy Wingo [Thu, 23 Jun 2005 00:39:26 +0000 (00:39 +0000)]
tests/: A network clock simulator.
Original commit message from CVS:
2005-06-23 Andy Wingo <wingo@pobox.com>
* tests/network-clock.scm:
* tests/network-clock-utils.scm: A network clock simulator.
Something of an algorithmic testbed before doing something in C.
Thomas Vander Stichele [Wed, 22 Jun 2005 19:57:12 +0000 (19:57 +0000)]
make sure capslist.h gets disted
Original commit message from CVS:
make sure capslist.h gets disted
Thomas Vander Stichele [Wed, 22 Jun 2005 19:48:54 +0000 (19:48 +0000)]
file fromstring.c was initially added on branch BRANCH-GSTREAMER-0_8.
Original commit message from CVS:
file fromstring.c was initially added on branch BRANCH-GSTREAMER-0_8.
Thomas Vander Stichele [Wed, 22 Jun 2005 19:22:34 +0000 (19:22 +0000)]
check/: copy over from 0.8, and add two with bitmasks specified with (int) 0xFF...
Original commit message from CVS:
* check/Makefile.am:
* check/gst/capslist.h:
copy over from 0.8, and add two with bitmasks specified with
(int) 0xFF...
* check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
add test to parse everything from capslist.h
* check/gst/gststructure.c: (START_TEST), (gst_value_suite),
(main):
add test for structure deserialization
* check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
add tests for deserialization of strings to int types
* gst/gststructure.c: (gst_structure_nth_field_name):
* gst/gststructure.h:
add a way to get the name of a field referenced by index
* gst/gstvalue.c: (gst_value_deserialize_int_helper):
instead of checking if the resulting long long lies between
min and max, we check if the long long would fit into
a number of bytes for the final type.
This fixes cases where a string represents 2^32 - 1, which
when cast to int would be the (valid) -1, but is bigger than
G_MAXINT
Thomas Vander Stichele [Wed, 22 Jun 2005 11:02:57 +0000 (11:02 +0000)]
add a log line for type deserialization
Original commit message from CVS:
add a log line for type deserialization
Thomas Vander Stichele [Wed, 22 Jun 2005 10:52:18 +0000 (10:52 +0000)]
return long long, not int, so gint64 deserialization actually works. Is there any flag that makes the compiler check...
Original commit message from CVS:
* check/gst/gstvalue.c: (START_TEST):
* gst/gstvalue.c: (gst_value_deserialize):
return long long, not int, so gint64 deserialization actually
works. Is there any flag that makes the compiler check this ?
Fixes #308559
Wim Taymans [Wed, 22 Jun 2005 09:55:16 +0000 (09:55 +0000)]
gst/gstbuffer.h: Added convenience macros for setting buffers in GValue.
Original commit message from CVS:
* gst/gstbuffer.h:
Added convenience macros for setting buffers in GValue.
Thomas Vander Stichele [Tue, 21 Jun 2005 17:41:35 +0000 (17:41 +0000)]
check/gst/: add a test deserializing int64, and comment part out because it fails, yay !
Original commit message from CVS:
* check/gst/.cvsignore:
* check/gst/gstvalue.c: (START_TEST), (gst_value_suite):
add a test deserializing int64, and comment part out because
it fails, yay !
Thomas Vander Stichele [Tue, 21 Jun 2005 16:53:14 +0000 (16:53 +0000)]
commit a file I forgot
Original commit message from CVS:
commit a file I forgot
Thomas Vander Stichele [Tue, 21 Jun 2005 16:48:46 +0000 (16:48 +0000)]
move over a value_serialize test
Original commit message from CVS:
move over a value_serialize test
Wim Taymans [Mon, 20 Jun 2005 15:18:17 +0000 (15:18 +0000)]
gst/gstpad.c: Small doc updates.
Original commit message from CVS:
* gst/gstpad.c:
Small doc updates.
* gst/gstvalue.c: (gst_value_compare_buffer),
(gst_value_serialize_buffer), (gst_value_deserialize_buffer),
(gst_value_compare_flags), (gst_value_serialize_flags),
(gst_value_deserialize_flags), (_gst_value_initialize):
Fix serialisation of buffers, they are not boxed types anymore
Wim Taymans [Mon, 20 Jun 2005 15:14:58 +0000 (15:14 +0000)]
check/gst/gstcaps.c: Testcase to show error in buffer-on-caps serialisation.
Original commit message from CVS:
* check/gst/gstcaps.c: (START_TEST), (gst_caps_suite):
Testcase to show error in buffer-on-caps serialisation.
Andy Wingo [Mon, 20 Jun 2005 15:13:43 +0000 (15:13 +0000)]
docs/random/wingo/porting-plugins-to-0.9: A pitiful document I will be adding to later.
Original commit message from CVS:
2005-06-20 Andy Wingo <wingo@pobox.com>
* docs/random/wingo/porting-plugins-to-0.9: A pitiful document I
will be adding to later.