Wim Taymans [Wed, 11 Apr 2012 10:58:19 +0000 (12:58 +0200)]
queue2: set buffer to NULL before pull
Wim Taymans [Wed, 11 Apr 2012 10:54:36 +0000 (12:54 +0200)]
tests: port queue2 tests to 0.11
Wim Taymans [Wed, 11 Apr 2012 10:50:50 +0000 (12:50 +0200)]
Merge remote-tracking branch 'origin/0.10'
Conflicts:
gst/gsttoc.c
plugins/elements/gstqueue2.c
Wim Taymans [Wed, 11 Apr 2012 10:34:55 +0000 (12:34 +0200)]
queue2: signal delete before waiting
When we don't have the requested data in the ringbuffer and we move our read
pointer to the requested position, signal the delete cond to inform the writer
that we changed the current fill level. If we don't, the writer might stay
blocked and we might wait forever.
Wim Taymans [Wed, 11 Apr 2012 10:15:37 +0000 (12:15 +0200)]
queue2: add test for ringbuffer deadlock
Wim Taymans [Wed, 11 Apr 2012 10:02:50 +0000 (12:02 +0200)]
queue2: update current read position before waiting
When we don't have enough bytes in the ringbuffer to satisfy the current
request, first update the current read position before waiting. If we don't do
that, the ringbuffer might appear full and the writer will never write more
bytes to wake us up.
Wim Taymans [Wed, 11 Apr 2012 10:00:10 +0000 (12:00 +0200)]
queue2: add range only on sinkpad
Only add the range when we receive a segment event on the sinkpad. The add_range
method will modify the write position, which only makes sense to do on the
sinkpad.
Wim Taymans [Wed, 11 Apr 2012 09:55:56 +0000 (11:55 +0200)]
queue2: fix debug message
We're not writing to the offset of the buffer
Wim Taymans [Wed, 11 Apr 2012 09:55:28 +0000 (11:55 +0200)]
queue2: add_range already updates the level
Alexander Saprykin [Tue, 10 Apr 2012 10:11:26 +0000 (14:11 +0400)]
toc: fix memory leaks while copying content
Alexander Saprykin [Tue, 10 Apr 2012 10:18:48 +0000 (14:18 +0400)]
tocsetter: fix memory leaks in unit test
Alexander Saprykin [Tue, 10 Apr 2012 10:16:50 +0000 (14:16 +0400)]
toc: fix memory leaks in unit test
Alexander Saprykin [Tue, 10 Apr 2012 10:18:48 +0000 (14:18 +0400)]
tocsetter: fix memory leaks in unit test
Alexander Saprykin [Tue, 10 Apr 2012 10:16:50 +0000 (14:16 +0400)]
toc: fix memory leaks in unit test
Alexander Saprykin [Tue, 10 Apr 2012 10:11:26 +0000 (14:11 +0400)]
toc: fix memory leaks while copying content
Sreerenj Balachandran [Tue, 10 Apr 2012 16:39:58 +0000 (19:39 +0300)]
buffer: Clean up header files
Wim Taymans [Tue, 10 Apr 2012 14:07:52 +0000 (16:07 +0200)]
Merge remote-tracking branch 'origin/0.10'
Wim Taymans [Tue, 10 Apr 2012 14:04:54 +0000 (16:04 +0200)]
queue2: clear seeking flag in all cases
Also clear the seeking flag when downstream is in pull mode.
Wim Taymans [Tue, 10 Apr 2012 10:55:31 +0000 (12:55 +0200)]
Merge remote-tracking branch 'origin/0.10'
Conflicts:
gst/gst.c
plugins/elements/gstqueue2.c
Wim Taymans [Tue, 10 Apr 2012 10:49:04 +0000 (12:49 +0200)]
gst: add toc entry ref/unref
Wim Taymans [Tue, 10 Apr 2012 10:09:53 +0000 (12:09 +0200)]
queue2: set seeking flag with the queue lock
Wim Taymans [Tue, 10 Apr 2012 09:20:09 +0000 (11:20 +0200)]
queue2: Keep track of the seeking state
Set the seeking flag right before we send a seek event upstream and discard all
data untill we see a flush-stop again. We need to do this because we activate
the range that we seek to immediately after sending the seek event and it is
possible that we receive data in our chain function from before the seek
which would then be added to the wrong range resulting in data corruption.
Wim Taymans [Tue, 10 Apr 2012 09:16:14 +0000 (11:16 +0200)]
queue2: make range on newsegment for ringbuffer
When using the ringbuffer, handle the newsegment event like we handle it when
using the temp-file mode: create a new range for the new byte segment. The new
segment should normally already be created when we do a seek.
Sebastian Dröge [Mon, 9 Apr 2012 14:42:30 +0000 (16:42 +0200)]
Merge remote-tracking branch 'origin/0.10'
Sebastian Dröge [Mon, 9 Apr 2012 14:40:47 +0000 (16:40 +0200)]
multiqueue: Don't use buffer after pushing it downstream
Sebastian Dröge [Mon, 9 Apr 2012 14:04:22 +0000 (16:04 +0200)]
Merge remote-tracking branch 'origin/0.10'
Sebastian Dröge [Mon, 9 Apr 2012 13:58:21 +0000 (15:58 +0200)]
element: Fail if a pad for a non-request template is requested
Tim-Philipp Müller [Mon, 9 Apr 2012 12:40:35 +0000 (13:40 +0100)]
element: use quarks when storing standard metadata in structures
Tim-Philipp Müller [Mon, 9 Apr 2012 12:05:07 +0000 (13:05 +0100)]
plugins: use new gst_element_class_set_static_metadata()
Tim-Philipp Müller [Mon, 9 Apr 2012 11:47:58 +0000 (12:47 +0100)]
element: add gst_element_class_{set,add}_static_metadata()
Add gst_element_class_{add,set}_metadata() variants for static strings,
so we can avoid unnecessary g_strdup()s.
API: gst_element_class_add_static_metadata()
API: gst_element_class_set_static_metadata()
Tim-Philipp Müller [Sun, 8 Apr 2012 20:17:14 +0000 (21:17 +0100)]
task: remove gst_task_set_priority()
It doesn't actually do anything.
Matej Knopp [Sat, 14 Jan 2012 05:31:32 +0000 (00:31 -0500)]
win32: add VS 10 Project files
https://bugzilla.gnome.org/show_bug.cgi?id=666219
Tim-Philipp Müller [Sun, 8 Apr 2012 17:25:39 +0000 (18:25 +0100)]
win32: update for version changes
Tim-Philipp Müller [Sat, 7 Apr 2012 15:35:27 +0000 (16:35 +0100)]
Merge remote-tracking branch 'origin/0.10'
Tim-Philipp Müller [Sat, 7 Apr 2012 15:06:22 +0000 (16:06 +0100)]
win32: add new TOC API to libgstreamer.def
Fixes 'make check'.
Tim-Philipp Müller [Sat, 7 Apr 2012 15:05:33 +0000 (16:05 +0100)]
tests: add new toc test binaries to .gitignore
Tim-Philipp Müller [Sat, 7 Apr 2012 15:04:14 +0000 (16:04 +0100)]
gst: don't export private TOC functions
Tim-Philipp Müller [Sat, 7 Apr 2012 14:42:08 +0000 (15:42 +0100)]
Merge remote-tracking branch 'origin/0.10'
Conflicts:
gst/gstatomicqueue.c
Wim Taymans [Fri, 24 Feb 2012 14:24:42 +0000 (15:24 +0100)]
atomicqueue: fix race
After a writer has written to its reserved write location, it can only make the
location available for reading if all of the writers with lower locations have
finished.
Wim Taymans [Fri, 24 Feb 2012 11:51:24 +0000 (12:51 +0100)]
atomicqueue: fix subtle race
Fix a race where the reader would see the updated the tail pointer before the
write could write the data into the queue. Fix this by having a separate reader
tail pointer that is only incremented after the writer wrote the data.
Tim-Philipp Müller [Sat, 7 Apr 2012 14:20:05 +0000 (15:20 +0100)]
filesrc: set default block size from local define
Doesn't actually change the default value, just makes use of the
define there is. Superficial testing with fakesink and jpegdec did
not reveal improved performance for bigger block sizes, so leave
default as it is.
Wim Taymans [Fri, 6 Apr 2012 14:46:58 +0000 (16:46 +0200)]
queue2: don't update the current reading_pos in flush
A flush from the upstream element should not make buffering go to 0, the next
pull request might be inside a range that we have and then we don't need to
buffer at all. If the next pull is outside anything we have, buffering will
happen as usual anyway.
Wim Taymans [Fri, 6 Apr 2012 10:42:39 +0000 (12:42 +0200)]
queue2: fix for merged changes
Wim Taymans [Fri, 6 Apr 2012 10:37:41 +0000 (12:37 +0200)]
Merge branch '0.10'
Wim Taymans [Fri, 6 Apr 2012 10:32:49 +0000 (12:32 +0200)]
queue2: check the pad mode on the right pad
Wim Taymans [Fri, 6 Apr 2012 10:24:22 +0000 (12:24 +0200)]
queue2: forward flush events correctly
We want to forward the flush events received on the sinkpad whenever the srcpad
is activated in pushmode, which can also happen when using the RINGBUFFER or
DOWNLOAD mode and downstream failed to activate us in pull mode.
Stefan Sauer [Thu, 5 Apr 2012 19:56:05 +0000 (21:56 +0200)]
controlbinding: chain up on dispose and finalize
Stefan Sauer [Thu, 5 Apr 2012 19:55:07 +0000 (21:55 +0200)]
gstobject: unparent the controlbinding on dispose
Stefan Sauer [Thu, 5 Apr 2012 19:07:55 +0000 (21:07 +0200)]
controller: dup the objects to avoid premature frees
Stefan Sauer [Thu, 5 Apr 2012 19:06:14 +0000 (21:06 +0200)]
controller: add a finalizer for the test controlbindings
No idea why valgrind still inists that there are leaks.
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