Sebastian Dröge [Thu, 5 Apr 2012 16:42:30 +0000 (18:42 +0200)]
Automatic update of common submodule
From 7fda524 to 464fe15
Sebastian Dröge [Thu, 5 Apr 2012 12:17:16 +0000 (14:17 +0200)]
gst: Change name parameter of GST_PLUGIN_DEFINE() to not take a string anymore
This will be needed when we later add support for static linking
of plugins without introducing new API or changing existing API.
Sebastian Dröge [Thu, 5 Apr 2012 11:23:00 +0000 (13:23 +0200)]
gstplugin: Add hack for handling 0.11.9X and 0.11.89.X with X>0 the same as 1.0.0
Also update the version number to 0.11.89.1
Mark Nauwelaerts [Thu, 5 Apr 2012 10:22:11 +0000 (12:22 +0200)]
tocsetter: clear mutex upon free
Sebastian Dröge [Thu, 5 Apr 2012 08:56:22 +0000 (10:56 +0200)]
registry: Set registry version to 1.0.0 too
Wim Taymans [Thu, 5 Apr 2012 08:36:08 +0000 (10:36 +0200)]
Merge branch '0.10'
Conflicts:
plugins/elements/gstqueue2.c
Wim Taymans [Thu, 5 Apr 2012 08:03:02 +0000 (10:03 +0200)]
queue2: stop waiting for more data after EOS
When we have EOS, read the remaining bytes in the buffer and make sure we don't
wait for more data. Also clip the output buffer to the amount of remaining
bytes.
Wim Taymans [Thu, 5 Apr 2012 07:56:52 +0000 (09:56 +0200)]
queue2: check for filled buffer correctly
When using the ringbuffer mode, the buffer is filled when we reached the
max_level.bytes mark or the total size of the ringbuffer, whichever is smaller.
Wim Taymans [Wed, 4 Apr 2012 11:07:27 +0000 (13:07 +0200)]
queue2: avoid waiting for a filled buffer
Use a threshold variable to hold the maximum distance from the current position
for with we will wait instead of doing a seek.
When using the ringbuffer and the requested offset is not available, avoid
waiting until the complete ringbuffer is filled but instead do a seek when the
requested data is further than the threshold.
Avoid doing the seek twice in the ringbuffer case.
Use the same threshold for ringbuffer and download buffering.
Alessandro Decina [Thu, 5 Apr 2012 07:07:18 +0000 (09:07 +0200)]
gstbuffer: fix compile warning
Sebastian Dröge [Wed, 4 Apr 2012 11:13:52 +0000 (13:13 +0200)]
gst: Change versioning
Remove GST_MAJORMINOR and replace it by GST_API_VERSION
Also set GST_VERSION_{MAJOR,MINOR,MICRO,NANO} explicitely
now.
All versions are at 1.0.0 now for the release soon but
API/ABI can still change until the 1.0.0 release.
Next release versions until 1.0.0 will be 0.10.9X and
these will be release candidates. GST_VERSION_* will
nonetheless stay at 1.0.0.0.
Sebastian Dröge [Wed, 4 Apr 2012 10:25:40 +0000 (12:25 +0200)]
Merge remote-tracking branch 'origin/0.10'
Conflicts:
docs/gst/gstreamer-sections.txt
gst/Makefile.am
gst/gst.c
gst/gst.h
gst/gstevent.c
gst/gstevent.h
gst/gstmessage.c
gst/gstmessage.h
gst/gstquark.c
gst/gstquark.h
gst/gstquery.c
gst/gstquery.h
gst/gsttoc.c
gst/gsttoc.h
gst/gsttocsetter.c
tests/check/Makefile.am
tests/check/gst/gsttoc.c
tests/check/gst/gsttocsetter.c
Wim Taymans [Tue, 3 Apr 2012 14:51:54 +0000 (16:51 +0200)]
buffer: improve _set_size()
Wim Taymans [Tue, 3 Apr 2012 14:44:58 +0000 (16:44 +0200)]
buffer: make get_sizes and _resize with ranges
Make the _get_sizes and _resize methods work on a range of memory to make them
more powerfull.
Mark Nauwelaerts [Tue, 3 Apr 2012 16:25:40 +0000 (18:25 +0200)]
consistencychecker: allow some more events before a segment event
Stefan Sauer [Tue, 3 Apr 2012 13:46:29 +0000 (15:46 +0200)]
tocsetter: use new glib mutex api
Tim-Philipp Müller [Mon, 2 Apr 2012 22:17:21 +0000 (23:17 +0100)]
tools: fix compiler warning
gst-launch.c: In function ‘print_toc_entry’:
gst-launch.c:446:3: error: the size of array ‘spc’ can’t be evaluated [-Werror=vla]
gst-launch.c:446:3: error: variable-sized object may not be initialized
Tim-Philipp Müller [Mon, 2 Apr 2012 22:29:24 +0000 (23:29 +0100)]
tests: add new unit test binaries to .gitignore
Tim-Philipp Müller [Mon, 2 Apr 2012 22:28:15 +0000 (23:28 +0100)]
gst: ref new entry enum types
Fixes 'make check', again.
Tim-Philipp Müller [Mon, 2 Apr 2012 22:24:22 +0000 (23:24 +0100)]
win32: add new API to .def file
Fixes 'make check'.
Tim-Philipp Müller [Mon, 2 Apr 2012 22:23:46 +0000 (23:23 +0100)]
toc: don't export private functions
Tim-Philipp Müller [Mon, 2 Apr 2012 22:17:21 +0000 (23:17 +0100)]
tools: fix compiler warning
gst-launch.c: In function ‘print_toc_entry’:
gst-launch.c:446:3: error: the size of array ‘spc’ can’t be evaluated [-Werror=vla]
gst-launch.c:446:3: error: variable-sized object may not be initialized
Tim-Philipp Müller [Mon, 2 Apr 2012 22:16:39 +0000 (23:16 +0100)]
po: update for new translatable strings
Stefan Sauer [Mon, 2 Apr 2012 21:01:17 +0000 (23:01 +0200)]
Merge remote-tracking branch 'origin/master'
Stefan Sauer [Mon, 2 Apr 2012 20:09:07 +0000 (22:09 +0200)]
toc: port to 0.11
Stefan Sauer [Thu, 22 Mar 2012 07:36:02 +0000 (08:36 +0100)]
gst-launch: add -c, --toc to print the toc
Print the nested chapter and edition structure of the chapters message.
Alexander Saprykin [Wed, 28 Mar 2012 19:15:41 +0000 (23:15 +0400)]
docs: add overview of GstToc usage
Alexander Saprykin [Wed, 14 Mar 2012 17:14:23 +0000 (21:14 +0400)]
docs: Add GstToc and GstTocSetter sections with related functions
Alexander Saprykin [Wed, 14 Mar 2012 17:13:22 +0000 (21:13 +0400)]
gstchecks: Add unit test for the GstTocSetter
Alexander Saprykin [Wed, 14 Mar 2012 17:12:22 +0000 (21:12 +0400)]
gstchecks: Add unit test for the GstToc
Alexander Saprykin [Wed, 14 Mar 2012 16:45:35 +0000 (20:45 +0400)]
Add new GstTocSetter interface
Alexander Saprykin [Wed, 14 Mar 2012 16:42:56 +0000 (20:42 +0400)]
Add new TOC query
Alexander Saprykin [Wed, 14 Mar 2012 16:41:48 +0000 (20:41 +0400)]
Add new TOC message
Alexander Saprykin [Wed, 14 Mar 2012 16:40:32 +0000 (20:40 +0400)]
Add new TOC and TOC select events
Alexander Saprykin [Wed, 14 Mar 2012 16:01:51 +0000 (20:01 +0400)]
Add generic table of contents (TOC) support
Stefan Sauer [Mon, 2 Apr 2012 19:15:09 +0000 (21:15 +0200)]
Merge branch '0.10'
Conflicts:
docs/gst/gstreamer-sections.txt
gst/Makefile.am
gst/gst.c
gst/gst.h
gst/gstevent.c
gst/gstevent.h
gst/gstmessage.h
gst/gstquark.c
gst/gstquark.h
gst/gstquery.c
gst/gstquery.h
tests/check/Makefile.am
Sebastian Dröge [Mon, 2 Apr 2012 13:30:04 +0000 (15:30 +0200)]
Merge remote-tracking branch 'origin/0.10'
Conflicts:
libs/gst/base/gstbaseparse.c
Edward Hervey [Mon, 2 Apr 2012 13:13:24 +0000 (15:13 +0200)]
baseparse: always attempt to push if not-linked
This avoids ending up with plenty of pending data (since we'll only
try to parse/push one frame from the incoming buffer).
Fixes increasing memory consumption when parsers aren't linked
Conflicts:
libs/gst/base/gstbaseparse.c
Edward Hervey [Mon, 2 Apr 2012 13:13:24 +0000 (15:13 +0200)]
baseparse: always attempt to push if not-linked
This avoids ending up with plenty of pending data (since we'll only
try to parse/push one frame from the incoming buffer).
Fixes increasing memory consumption when parsers aren't linked
Руслан Ижбулатов [Sat, 31 Mar 2012 23:30:51 +0000 (03:30 +0400)]
Timeout is not used on W32
Fixes #673267
Wim Taymans [Mon, 2 Apr 2012 09:09:50 +0000 (11:09 +0200)]
trans: add transform_ip_on_passthrough
Add an option to control if transform_ip is called in passthrough mode or not.
for elements that don't want to look at the data in passthrough mode, this can
avoid some extra processing, mostly in subclasses.
Stefan Sauer [Thu, 22 Mar 2012 07:36:02 +0000 (08:36 +0100)]
gst-launch: add -c, --toc to print the toc
Print the nested chapter and edition structure of the chapters message.
Alexander Saprykin [Wed, 28 Mar 2012 19:15:41 +0000 (23:15 +0400)]
docs: add overview of GstToc usage
Alexander Saprykin [Wed, 14 Mar 2012 17:14:23 +0000 (21:14 +0400)]
docs: Add GstToc and GstTocSetter sections with related functions
Alexander Saprykin [Wed, 14 Mar 2012 17:13:22 +0000 (21:13 +0400)]
gstchecks: Add unit test for the GstTocSetter
Alexander Saprykin [Wed, 14 Mar 2012 17:12:22 +0000 (21:12 +0400)]
gstchecks: Add unit test for the GstToc
Alexander Saprykin [Wed, 14 Mar 2012 16:45:35 +0000 (20:45 +0400)]
Add new GstTocSetter interface
Alexander Saprykin [Wed, 14 Mar 2012 16:42:56 +0000 (20:42 +0400)]
Add new TOC query
Alexander Saprykin [Wed, 14 Mar 2012 16:41:48 +0000 (20:41 +0400)]
Add new TOC message
Alexander Saprykin [Wed, 14 Mar 2012 16:40:32 +0000 (20:40 +0400)]
Add new TOC and TOC select events
Alexander Saprykin [Wed, 14 Mar 2012 16:01:51 +0000 (20:01 +0400)]
Add generic table of contents (TOC) support
Wim Taymans [Sun, 1 Apr 2012 10:01:34 +0000 (12:01 +0200)]
buffer: reuse more code
Wim Taymans [Sun, 1 Apr 2012 09:42:52 +0000 (11:42 +0200)]
buffer: make function to find memory in a buffer
Make a function to find the memory blocks for a region in a buffer.
Stefan Sauer [Sat, 31 Mar 2012 19:26:22 +0000 (21:26 +0200)]
childproxy: fix more missing GST_OBJECT -> G_OBJECT use
Wim Taymans [Sat, 31 Mar 2012 16:34:23 +0000 (18:34 +0200)]
adapter: use buffer_wrap
Wim Taymans [Sat, 31 Mar 2012 15:10:35 +0000 (17:10 +0200)]
buffer: add peek_memory method
Add a peerk_memory method that simply fetches the memory at an offset without
refcounting or merging.
Wim Taymans [Sat, 31 Mar 2012 10:00:56 +0000 (12:00 +0200)]
grammar.y: fix childproxy code
It takes GObject and not GstObject now
Stefan Sauer [Fri, 30 Mar 2012 20:46:02 +0000 (22:46 +0200)]
childproxy: include the child name in the signal
Stefan Sauer [Fri, 30 Mar 2012 20:44:31 +0000 (22:44 +0200)]
parser: update for childproxy api changes
Stefan Sauer [Fri, 30 Mar 2012 20:36:35 +0000 (22:36 +0200)]
childproxy: fix signal parameter types
Stefan Sauer [Fri, 30 Mar 2012 20:17:09 +0000 (22:17 +0200)]
childproxy: use GObject instead of GstObject
This makes it prossible to be used more widely. Fix implementations for the API
change.
Stefan Sauer [Fri, 30 Mar 2012 20:01:55 +0000 (22:01 +0200)]
childproxy: make get_child_by_name virtual
Allows implementations to use custom name->object mappings.
Stefan Sauer [Fri, 30 Mar 2012 20:01:26 +0000 (22:01 +0200)]
childproxy: fix indentation
Wim Taymans [Fri, 30 Mar 2012 16:04:51 +0000 (18:04 +0200)]
buffer: improve the buffer memory methods
gst_buffer_take_memory -> gst_buffer_insert_memory because insert is what the
method does.
Make all methods deal with ranges so that we can replace, merge, remove and map
a certain subset of the memory in a buffer. With the new methods we can make
some code nicer and reuse more code. Being able to deal with a subset of the
buffer memory allows us to optimize more cases later (most notably RTP headers
and payload that could be in different memory objects).
Make some more convenient macros that call the more generic range methods.
Mark Nauwelaerts [Fri, 30 Mar 2012 14:53:09 +0000 (16:53 +0200)]
typefindelement: plug caps leaks
Mark Nauwelaerts [Fri, 30 Mar 2012 14:53:05 +0000 (16:53 +0200)]
typefindhelper: also unmap collected mapped buffers
Mark Nauwelaerts [Fri, 30 Mar 2012 14:53:00 +0000 (16:53 +0200)]
basetransform: plug caps leak
Sebastian Dröge [Fri, 30 Mar 2012 09:58:20 +0000 (11:58 +0200)]
baseparse: Rename ::event() to ::sink_event() for consistency
Edward Hervey [Fri, 30 Mar 2012 09:49:16 +0000 (11:49 +0200)]
basesink: lower GST_BASE_SRC_FLAG_LAST
It wouldn't leave that much room for subclass users
Edward Hervey [Fri, 30 Mar 2012 06:55:33 +0000 (08:55 +0200)]
win32: Update defs file
Sebastian Dröge [Thu, 29 Mar 2012 16:03:35 +0000 (18:03 +0200)]
bytewriter: Actually commit the .c file changes too
Sebastian Dröge [Thu, 29 Mar 2012 15:59:28 +0000 (17:59 +0200)]
bytewriter: Add unchecked/inline variant of gst_byte_writer_put_buffer()
Edward Hervey [Thu, 29 Mar 2012 15:53:47 +0000 (17:53 +0200)]
gstquery: Fix annotation
Edward Hervey [Thu, 29 Mar 2012 15:44:02 +0000 (17:44 +0200)]
queue: Flush the internal queue when we see GST_FLOW_FLUSHING
Ensures that we don't end up with stale contents (like GstQuery) in
the internal GQueue after any blocking upstream thread returns.
Edward Hervey [Thu, 29 Mar 2012 15:43:17 +0000 (17:43 +0200)]
queue: Don't unref GstQuery travelling through the queue
Unlike events and buffers, the reference is not given to us
Mark Nauwelaerts [Thu, 29 Mar 2012 15:08:49 +0000 (17:08 +0200)]
query: parsing allocation query need not provide reffed caps
... in line with other query parsing function.
Fabrizio (Misto) Milo [Thu, 29 Mar 2012 13:45:00 +0000 (15:45 +0200)]
caps: spelling fixes
Edward Hervey [Thu, 29 Mar 2012 13:28:44 +0000 (15:28 +0200)]
gstelement: lower GST_ELEMENT_FLAG_LAST
It wouldn't leave that much room for subclass users
Edward Hervey [Thu, 29 Mar 2012 13:18:33 +0000 (15:18 +0200)]
gstbuffer: Fix unitialized variable
gcc 4.5 complains otherwise :(
Sebastian Dröge [Thu, 29 Mar 2012 12:54:53 +0000 (14:54 +0200)]
Merge remote-tracking branch 'origin/0.10'
Conflicts:
plugins/elements/gstmultiqueue.c
Sebastian Dröge [Thu, 29 Mar 2012 12:45:41 +0000 (14:45 +0200)]
multiqueue: Wake up all not-linked streams when a stream switches from linked to not-linked
We reset all the waiting streams, let them push another buffer to
see if they're now active again. This allows faster switching
between streams and prevents deadlocks if downstream does any
waiting too.
Also improve locking a bit, srcresult must be protected by the
multiqueue lock too because it's used/set from random threads.
Sebastian Dröge [Thu, 29 Mar 2012 12:32:24 +0000 (14:32 +0200)]
multiqueue: Recompute high-time too when flushing, not only high-id
Sebastian Dröge [Thu, 29 Mar 2012 11:39:40 +0000 (13:39 +0200)]
inputselector: Only wait until the active pad's running time is reached if the active pad already saw data
Otherwise we might block forever because upstream (e.g. multiqueue) is waiting
for the previously active stream to return forever (which is waiting here
in inputselector) before pushing something on the newly selected stream.
Wim Taymans [Thu, 29 Mar 2012 11:34:50 +0000 (13:34 +0200)]
docs: update more documentation
Wim Taymans [Wed, 28 Mar 2012 16:12:23 +0000 (18:12 +0200)]
review some docs
Wim Taymans [Wed, 28 Mar 2012 14:44:34 +0000 (16:44 +0200)]
buffer: simplify and refactor _span and _merge
Unify the _span and _merge code paths and simplify now that we only use this
internally.
Wim Taymans [Wed, 28 Mar 2012 13:16:01 +0000 (15:16 +0200)]
buffer: we always call _span with the buffer size
Wim Taymans [Wed, 28 Mar 2012 13:12:05 +0000 (15:12 +0200)]
buffer: move some code around
Wim Taymans [Wed, 28 Mar 2012 13:08:44 +0000 (15:08 +0200)]
buffer: we call _span always with 0 offset
Wim Taymans [Wed, 28 Mar 2012 11:08:59 +0000 (13:08 +0200)]
buffer: remove always FALSE function argument
Mark Nauwelaerts [Wed, 28 Mar 2012 14:39:54 +0000 (16:39 +0200)]
buffer: delay buffer unref until buffer no longer needed
Wim Taymans [Wed, 28 Mar 2012 10:44:44 +0000 (12:44 +0200)]
buffer: unify buffer merge methods
Add gst_buffer_append() which appends the memory blocks from one buffer to
another. Remove the old inefficient _merge() and _join() methods which forced a
premature memcpy in most cases.
Remove the _is_span() and _span() methods they are not needed anymore now that
we can _append(). Merging and spanning will be delayed until mapping or maybe
not at all when the element can deal with the different memory blocks.
Olivier Crête [Tue, 27 Mar 2012 19:24:49 +0000 (15:24 -0400)]
gstpad: Fix typo in docstring
Olivier Crête [Tue, 27 Mar 2012 19:24:49 +0000 (15:24 -0400)]
gstpad: Fix typo in docstring
Wim Taymans [Tue, 27 Mar 2012 13:16:55 +0000 (15:16 +0200)]
buffer: re-enable _span offset calculations
when we _span two complete buffers, we can copy offsets and timestamps.
Wim Taymans [Tue, 27 Mar 2012 13:00:38 +0000 (15:00 +0200)]
trace: add refcount to trace debug
Wim Taymans [Tue, 27 Mar 2012 12:59:06 +0000 (14:59 +0200)]
buffer: add more _is_writable checks
Add some checks to assert on writability for functions that modify metadata.
Wim Taymans [Tue, 27 Mar 2012 10:40:36 +0000 (12:40 +0200)]
bufferpool: remove const from get/set_param
Remove the const from the GstCaps in get/set_param. set_param modifies
the refcount of the caps.
Don't increment the refcount of the caps result of get_param like we
do with other objects.
Update some annotiations.
Wim Taymans [Tue, 27 Mar 2012 10:39:53 +0000 (12:39 +0200)]
bufferpool: fix annotation for _release
_release takes ownership of the buffer
Sebastian Dröge [Tue, 27 Mar 2012 10:31:18 +0000 (12:31 +0200)]
bus: Change the timeout argument type of gst_bus_poll() from GstClockTimeDiff to GstClockTime
This is more consistent with the other GstBus methods that have a timeout.