Tim-Philipp Müller [Thu, 2 Aug 2012 12:19:27 +0000 (13:19 +0100)]
docs: update porting-to-0.11 document with a "soft" API changes checklist
Point out some API changes that the compiler won't
be able to warn about.
Tim-Philipp Müller [Thu, 2 Aug 2012 10:33:41 +0000 (11:33 +0100)]
tools: fix printing of partial dates in gst-launch
Tim-Philipp Müller [Thu, 2 Aug 2012 10:15:16 +0000 (11:15 +0100)]
Revert "tools: print TOC scope"
This reverts commit
ee6ab7c93638a6519acb976699a6ad149d520a95.
The application will probably only ever receive global TOCs,
so don't really need this.
Tim-Philipp Müller [Wed, 1 Aug 2012 16:49:27 +0000 (17:49 +0100)]
win32: add new tag list scope symbols
Tim-Philipp Müller [Wed, 1 Aug 2012 10:58:55 +0000 (11:58 +0100)]
typefind: send segment_done event in addition to segment_done message
Sebastian Dröge [Tue, 31 Jul 2012 15:25:50 +0000 (17:25 +0200)]
basesrc: Add default handler for URI query in GstURIHandler subclasses
Sjoerd Simons [Sat, 28 Jul 2012 15:33:52 +0000 (17:33 +0200)]
check: unbreak fail #define
The fail() definition was changed to not fail with non-GCC compilers,
unfortunately the change was incorrect and appended the first argument
of fail to the expression string instead of making it the message.
This change does mean that fail() now requires a message to be passed
along.
https://bugzilla.gnome.org/show_bug.cgi?id=680755
Jens Georg [Sun, 29 Jul 2012 21:37:19 +0000 (23:37 +0200)]
buffer: Update annotations
https://bugzilla.gnome.org/show_bug.cgi?id=680805
Jens Georg [Sun, 29 Jul 2012 21:20:07 +0000 (23:20 +0200)]
utils: Update annotation for get_compatible_pad
https://bugzilla.gnome.org/show_bug.cgi?id=680804
Thibault Saunier [Sun, 29 Jul 2012 01:23:24 +0000 (21:23 -0400)]
uri: Fix wrong 'array zero-terminated=1' annotation for strings
Tim-Philipp Müller [Sat, 28 Jul 2012 10:02:30 +0000 (11:02 +0100)]
docs: update TOC design docs a little
Tim-Philipp Müller [Sat, 28 Jul 2012 08:41:30 +0000 (09:41 +0100)]
event: make TOC event multi-sticky
We need to send two kinds of TOCs downstream as events,
and need both to stick to the pads.
https://bugzilla.gnome.org/show_bug.cgi?id=678742
Tim-Philipp Müller [Sat, 28 Jul 2012 07:30:36 +0000 (08:30 +0100)]
tools: print TOC scope
Tim-Philipp Müller [Fri, 27 Jul 2012 22:56:54 +0000 (23:56 +0100)]
toc: add GstTocScope and require it in the constructor
This is because we need to be able to signal different TOCs
to downstream elements such as muxers and the application,
and because we need to send both types as events (because
the sink should post the TOC messages for the app in the
end, just like tag messages are now posted by the sinks),
and hence need to make TOC events multi-sticky.
https://bugzilla.gnome.org/show_bug.cgi?id=678742
Tim-Philipp Müller [Fri, 27 Jul 2012 22:54:00 +0000 (23:54 +0100)]
scripts: create-uninstalled-setup.sh: check for basic build tools and deps
.. before checking out stuff.
Sebastian Dröge [Fri, 27 Jul 2012 21:52:12 +0000 (23:52 +0200)]
tag: Add a scope to taglists
This specifies if a given taglist applies to the complete
medium or only this specific stream. By default a taglist
has a stream scope.
Fixes bug #677619.
Wim Taymans [Fri, 27 Jul 2012 15:09:45 +0000 (17:09 +0200)]
segment: add offset field
Add an offset field that is used to track at what position the segment was
updated. This is used to set the running time to 0 when we do a flushing
seek that doesn't update the position.
See https://bugzilla.gnome.org/show_bug.cgi?id=680306
Wim Taymans [Fri, 27 Jul 2012 13:19:57 +0000 (15:19 +0200)]
Update for new seeking variable name
When seeking, the start value and type are now called start and start_type.
Wim Taymans [Fri, 27 Jul 2012 12:53:03 +0000 (14:53 +0200)]
segment: small cleanup
Move the code to update the segment at the end of the function.
Tim-Philipp Müller [Fri, 27 Jul 2012 11:05:25 +0000 (12:05 +0100)]
Update docs and .def file for taglist API change
Wim Taymans [Fri, 27 Jul 2012 11:02:52 +0000 (13:02 +0200)]
segment: remove redundant checks
We don't need to check the segment format anymore because we asserted on them
being equal before.
Wim Taymans [Fri, 27 Jul 2012 10:24:03 +0000 (12:24 +0200)]
tests: improve segment tests
Wim Taymans [Fri, 27 Jul 2012 10:12:37 +0000 (12:12 +0200)]
allocator: remove user_data from alloc vmethod
Remove the user_data from the alloc vmethod. Subclasses that implement a new
alloc function can also implement their own vmethod to pass extra arguments. We
can then also require that custom allocators implement an alloc function so that
gst_allocator_alloc() always works.
Wim Taymans [Fri, 27 Jul 2012 08:41:54 +0000 (10:41 +0200)]
tests: remove segment accumulation checks
Remove the checks because there is no more segment accumulation.
Tim-Philipp Müller [Thu, 26 Jul 2012 15:44:15 +0000 (16:44 +0100)]
taglist: make GST_TAG_APPLICATION_DATA also a GstSample
That way additional meta-data can be passed along with it.
Tim-Philipp Müller [Thu, 26 Jul 2012 14:51:10 +0000 (15:51 +0100)]
taglist: gst_tag_list_get_buffer*() => gst_tag_list_get_sample*()
Image tags and other tags are now of GstSample type.
Tim-Philipp Müller [Thu, 26 Jul 2012 14:26:09 +0000 (15:26 +0100)]
gst-launch: print image tags and other GstSample tags properly
These tags are now of type GstSample not GstBuffer.
Stefan Sauer [Tue, 24 Jul 2012 19:38:35 +0000 (21:38 +0200)]
collectpads: remove unimplemented api
We can always add this back if we need it. Fixes parts of #670852.
Mark Nauwelaerts [Tue, 24 Jul 2012 11:49:36 +0000 (13:49 +0200)]
baseparse: also account for frame size when merely scanning for frame
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680495
Mark Nauwelaerts [Tue, 24 Jul 2012 11:48:39 +0000 (13:48 +0200)]
baseparse: remove obsolete function parameter
Wim Taymans [Tue, 24 Jul 2012 10:38:15 +0000 (12:38 +0200)]
typefind: require bytes before typefinding
Require that we have some bytes in the adapter before we attempt to typefind.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680479
Christian Fredrik Kalager Schaller [Mon, 23 Jul 2012 16:49:13 +0000 (18:49 +0200)]
update spec file with latest changes
Wim Taymans [Mon, 23 Jul 2012 14:27:34 +0000 (16:27 +0200)]
bufferlist: pass index as gint to _insert
Make the idx argument of _insert() a gint because we allow -1 as a value.
Improve annotation.
Wim Taymans [Mon, 23 Jul 2012 11:40:38 +0000 (13:40 +0200)]
plugins: print flags better
print the buffer flags as a hex number so that it becomes easier to see what
flags are set.
Sebastian Rasmussen [Wed, 18 Jul 2012 15:03:45 +0000 (17:03 +0200)]
gstpoll: Improve warning message when re-adding fd to fdset
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680181
Sebastian Dröge [Mon, 23 Jul 2012 06:44:04 +0000 (08:44 +0200)]
Automatic update of common submodule
From
98e386f to
94ccf4c
Tim-Philipp Müller [Thu, 19 Jul 2012 23:49:28 +0000 (00:49 +0100)]
value: add GstTagList serialisation/deserialisation
So we can serialise/deserialise taglists inside structures,
which used to work automagically before because GstTagList
was just a typedef to GstStructure (same for the GType),
but now that it's a separate GType we need to register
explicit functions for this.
Helps with GDP stuff in pipelines/streamheader tests.
Philippe Normand [Fri, 20 Jul 2012 07:38:47 +0000 (09:38 +0200)]
po: Update .po files
Mark Nauwelaerts [Thu, 19 Jul 2012 11:51:23 +0000 (13:51 +0200)]
tests: gstbuffer: add tests for some mulitple map combinations
Wim Taymans [Thu, 19 Jul 2012 11:35:34 +0000 (13:35 +0200)]
miniobject: fix sharedness check
Wim Taymans [Thu, 19 Jul 2012 11:20:27 +0000 (13:20 +0200)]
miniobject: refuse write when object is shared
In all cases, refuse to write an object when it is shared by more than one
object (also when the object was locked before).
See https://bugzilla.gnome.org/show_bug.cgi?id=679145
Mark Nauwelaerts [Wed, 18 Jul 2012 13:21:33 +0000 (15:21 +0200)]
tests: gstbuffer: extend buffer copy test
Wim Taymans [Thu, 19 Jul 2012 10:42:05 +0000 (12:42 +0200)]
queue2: set buffering-left to 0 on 100% buffering
Set the buffering-left field in the query to 0 when we are completely buffered.
Improve the debug.
Wim Taymans [Thu, 19 Jul 2012 10:14:29 +0000 (12:14 +0200)]
queue2: fix buffering query
Fix the buffering query, fill in the right buffering-left and estimated-total
values.
Wim Taymans [Thu, 19 Jul 2012 08:54:16 +0000 (10:54 +0200)]
queue2: fix the buffering-left in the buffering message
The buffering-left field in the buffering message should contain a time estimate
in milliseconds about for long the buffering is going to take. We can calculate
this value when we do rate_estimates.
Wim Taymans [Thu, 19 Jul 2012 08:14:18 +0000 (10:14 +0200)]
message: improve buffering message defaults
Remove the estimated-total field, this should not be part of the buffering
message.
Set the default value of buffering-left to 0 when the percent is 100.
Wim Taymans [Wed, 18 Jul 2012 15:44:54 +0000 (17:44 +0200)]
pad: fix debug line
Use QUERY_TYPE on query types.
Wim Taymans [Wed, 18 Jul 2012 15:35:58 +0000 (17:35 +0200)]
ghostpad: remove custom function
Remove custom pad functions, the default ones are better.
Wim Taymans [Wed, 18 Jul 2012 15:30:30 +0000 (17:30 +0200)]
pad: add PROXY_SCHEDULING flag
Add a flag that makes the default query handler forward the scheduling query.
Wim Taymans [Wed, 18 Jul 2012 15:30:04 +0000 (17:30 +0200)]
utils: fix docs
Wim Taymans [Wed, 18 Jul 2012 14:20:41 +0000 (16:20 +0200)]
pad: improve query caps function
In the proxy_query_caps function, also filter against the filter in the query.
We don't need to filter against the filter in the query anymore in the default
caps query function because we already did this in the proxy_query_caps.
Wim Taymans [Wed, 18 Jul 2012 09:17:23 +0000 (11:17 +0200)]
basesink: handle -1 step amounts
Define a 0 and -1 step amount. They used to almost do the same thing but now, 0
cancels/stops the current step and -1 keeps on stepping until the end of the
segment.
See https://bugzilla.gnome.org/show_bug.cgi?id=679378
Tim-Philipp Müller [Wed, 18 Jul 2012 11:30:59 +0000 (12:30 +0100)]
query: fix gst_query_parse_nth_allocation_pool() annotation
It returns a ref to the pool.
Edward Hervey [Tue, 17 Jul 2012 13:52:53 +0000 (15:52 +0200)]
check: Avoid deadlock
Queries will be sent when pipeline goes down to NULL, which would
result in the probe being called ... but can't take the lock.
Edward Hervey [Tue, 17 Jul 2012 13:50:09 +0000 (15:50 +0200)]
gstghostpad: Forward queries in both direction
Use the peer of the internal pad to forward them, instead of the
target which only exists for the ghostpad (and not the internal
proxy pad).
Edward Hervey [Tue, 17 Jul 2012 09:20:43 +0000 (11:20 +0200)]
docs: More entries
Tim-Philipp Müller [Wed, 18 Jul 2012 08:15:51 +0000 (09:15 +0100)]
queue: answer SCHEDULING query
Instead of letting the default query handler fail.
Tim-Philipp Müller [Tue, 17 Jul 2012 18:20:23 +0000 (19:20 +0100)]
queue2: handle CAPS event and drop it if operating in ring buffer mode
Fixes "Unexpected event of kind caps can't be added in temp file"
warning when doing download buffering.
Wim Taymans [Tue, 17 Jul 2012 10:57:59 +0000 (12:57 +0200)]
buffer: make _foreach_meta more powerful
Make _foreach_meta return FALSE when the foreach function returned FALSE.
Wim Taymans [Tue, 17 Jul 2012 10:52:59 +0000 (12:52 +0200)]
bufferlist: improve foreach function
Make the foreach function return FALSE when one of the function calls returned
FALSE.
Wim Taymans [Tue, 17 Jul 2012 10:50:24 +0000 (12:50 +0200)]
buffer: add more debug
Wim Taymans [Tue, 17 Jul 2012 10:40:54 +0000 (12:40 +0200)]
basesink: fix debug string
Wim Taymans [Tue, 17 Jul 2012 07:57:47 +0000 (09:57 +0200)]
parse: fix some debug
Wim Taymans [Tue, 17 Jul 2012 07:48:00 +0000 (09:48 +0200)]
parse: only escape spaces outside of quotes
When we escape spaces to keep arguments together, only escape when the space is
outside a "" string.
See https://bugzilla.gnome.org/show_bug.cgi?id=673319
Wim Taymans [Tue, 17 Jul 2012 07:44:10 +0000 (09:44 +0200)]
Revert "parse: escape \ with a \ as well, so that we don't lose the \ when unescaping"
This reverts commit
dd9fedb41f1ada8e1f8bd5346fccd3d068d543cb.
This is not the right place to escape the \, we should only escape the spaces to
keep the arguments together that were provided as one group (with quotes on the
shell).
Evan Nemerson [Tue, 10 Jul 2012 19:27:11 +0000 (12:27 -0700)]
utils: set return type of gst_parse_bin_* to GstBin for introspection
Evan Nemerson [Sat, 30 Jun 2012 19:33:43 +0000 (12:33 -0700)]
nettimepacket: add missing array annotation to gst_net_time_packet_new
Evan Nemerson [Sat, 30 Jun 2012 00:33:49 +0000 (17:33 -0700)]
introspection: add missing array annotation to gst_formats_contains
Stefan Sauer [Mon, 16 Jul 2012 18:54:17 +0000 (20:54 +0200)]
bin: aggregate durations like in adder
Stop querying the duration once an element return unknown and return unknown
as a final result. This avoid eventually cutting off a stream too early.
Add a tests to docuement the behavior.
Tim-Philipp Müller [Sun, 15 Jul 2012 23:24:46 +0000 (00:24 +0100)]
datetime: just return NULL on short input strings instead of a warning
We want to be able to use this function on random non-NULL input,
this should not result in a runtime-critical.
Tim-Philipp Müller [Sun, 15 Jul 2012 11:59:44 +0000 (12:59 +0100)]
baseparse: fix seekability querying with formats with headers like FLAC
Move code that checks for upstream seekability and all that to
the right place, otherwise it will never be done for formats
that have headers such as FLAC, as handle_and_push frame will
be called the first time only after headers have been processed
(and framecount is > 0). This then makes us report that we
can't seek, which disables the seek bar in totem.
Tim-Philipp Müller [Sat, 14 Jul 2012 19:33:30 +0000 (20:33 +0100)]
plugins: embed GstAueueArray in dataqueue struct as well
Tim-Philipp Müller [Sat, 14 Jul 2012 19:28:54 +0000 (20:28 +0100)]
plugins: don't use one-time array in plugin_init
Tim-Philipp Müller [Sat, 14 Jul 2012 19:26:04 +0000 (20:26 +0100)]
queue: embed GstQueueArray structure
Tim-Philipp Müller [Sat, 14 Jul 2012 19:00:30 +0000 (20:00 +0100)]
plugins: sprinkle some more G_GNUC_INTERNAL
Tim-Philipp Müller [Sat, 14 Jul 2012 18:38:39 +0000 (19:38 +0100)]
plugins: add init/clear functions to GstQueueArray
Tim-Philipp Müller [Sat, 14 Jul 2012 18:24:57 +0000 (19:24 +0100)]
base: make GstQueueArray private to coreelements for now
Keep it private until we have a reason to make it public.
Tim-Philipp Müller [Sat, 14 Jul 2012 18:08:24 +0000 (19:08 +0100)]
taglist: check value type matches tag type when adding values to a taglist
Tim-Philipp Müller [Sat, 14 Jul 2012 17:52:50 +0000 (18:52 +0100)]
info: make taglists and datetime loggable via GST_PTR_FORMAT
Wim Taymans [Fri, 13 Jul 2012 10:05:15 +0000 (12:05 +0200)]
baseparse: send seek event upstream first
First try to let upstream handle the seek event, then fail if the event is
something we don't understand.
Wim Taymans [Fri, 13 Jul 2012 07:43:59 +0000 (09:43 +0200)]
pad: fix test raciness
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=679506
Tim-Philipp Müller [Thu, 12 Jul 2012 12:17:51 +0000 (13:17 +0100)]
gst-uninstalled: fix gst-ffmpeg plugin path again
Tim-Philipp Müller [Thu, 12 Jul 2012 11:09:13 +0000 (12:09 +0100)]
gst-uninstalled: add clutter-gst and refine plugin search paths
Jan Schmidt [Wed, 11 Jul 2012 14:34:22 +0000 (00:34 +1000)]
gstpad: Move sticky flag clearing code to gst_pad_activate_mode
The ghostpad code directly activates/deactivates the child code by
calling gst_pad_activate_mode, rather than gst_pad_set_active, so
make sure to clear the flags in gst_pad_activate_mode(), which should
catch all cases.
Wim Taymans [Wed, 11 Jul 2012 10:40:10 +0000 (12:40 +0200)]
event: improve annotation
Wim Taymans [Wed, 11 Jul 2012 10:37:05 +0000 (12:37 +0200)]
basesink: handle step end correctly
when we have a new step event with a -1 amount, make sure that we follow the
regular code path so that the stop_end handler is called as usual. This takes
care of flushing the buffer in case of a flushing step and also posts a step end
message.
See https://bugzilla.gnome.org/show_bug.cgi?id=679378
Sebastian Dröge [Wed, 11 Jul 2012 11:14:57 +0000 (13:14 +0200)]
win32: Fix exported symbols list for real now
Stefan Sauer [Wed, 11 Jul 2012 09:21:18 +0000 (11:21 +0200)]
segment: remove removed api from the docs.
Sebastian Dröge [Wed, 11 Jul 2012 10:46:31 +0000 (12:46 +0200)]
win32: Updated exported symbols list
Sebastian Dröge [Wed, 11 Jul 2012 10:45:51 +0000 (12:45 +0200)]
toc: Add functions to retrieve the parent GstToc/GstTocEntry of a GstTocEntry
Anton Belka [Tue, 10 Jul 2012 15:15:20 +0000 (18:15 +0300)]
toc: Fix gst_toc_find_entry()
Recursive search for the required entry, instead of returning the
top-level entry that contains an entry with the search UID.
Edward Hervey [Wed, 11 Jul 2012 08:26:13 +0000 (10:26 +0200)]
baseparse: Push STREAM_START in pull-mode
Edward Hervey [Wed, 11 Jul 2012 08:24:51 +0000 (10:24 +0200)]
structure: Demote WARNING to DEBUG
It is not an issue to get fields that don't exist, calling code should
handle that.
Edward Hervey [Tue, 10 Jul 2012 09:46:41 +0000 (11:46 +0200)]
Remove 0.10-related documentation and "Since" markers
Tim-Philipp Müller [Mon, 9 Jul 2012 23:39:37 +0000 (00:39 +0100)]
basesrc: provide fallback in case a create function doesn't know about provided buffers
In 0.11 the caller may provide a buffer to be filled by the source to
pull_range/get_range/create, but it's easy to miss this new case when
porting code from 0.10. Provide fallback that copies the created data
into the provided buffer for now.
This makes oggdemux in pull-mode work with dataurisrc.
Wim Taymans [Tue, 10 Jul 2012 08:31:00 +0000 (10:31 +0200)]
query: copy structure in _add_allocation_meta()
Make gst_query_add_allocation_meta() take a copy of the passed caps instead of
taking ownership. This makes it easier for the caller in most cases because it
doesn't have to make a copy and deal with NULL values.
Wim Taymans [Tue, 10 Jul 2012 08:11:57 +0000 (10:11 +0200)]
gst: add new flags
Matej Knopp [Mon, 9 Jul 2012 21:47:53 +0000 (23:47 +0200)]
miniobject: fix exclusive lock/unlock race
Tim-Philipp Müller [Mon, 9 Jul 2012 20:51:07 +0000 (21:51 +0100)]
basesrc, basesink, baseparse, typefind: use GST_SEGMENT_FLAG with segment flags
Stefan Sauer [Mon, 9 Jul 2012 20:11:31 +0000 (22:11 +0200)]
segment: also copy the segment flag
Fixes segmented seeks (as tested e.g. in the adder tests in base).