Tim-Philipp Müller
0e1dd050a5
printf: don't build if debugging subsystem was disabled
2013-04-13 01:19:41 +01:00
Tim-Philipp Müller
5299a0cd65
printf: deal with some of the HAVE_FOO used in the printf code
...
Probably needs some more work for MSVC.
2013-04-12 23:05:59 +01:00
Tim-Philipp Müller
3c1d9c6d41
printf: fix alloca use for windows with mingw32
...
Don't use just GLIB_HAVE_ALLOCA_H to check if alloca is available,
that's just for the header. GLib may define alloca for us otherwise
too irrespective of GLIB_HAVE_ALLOCA_H.
Fixes compiler warning with mingw32:
gst/printf/vasnprintf.c:73:0: warning: "alloca" redefined
2013-04-12 23:05:58 +01:00
Tim-Philipp Müller
ff292d530c
printf: enable and fix compiler warnings
...
But suppress -Wformat-nonliteral warnings since sprintf
is used with a runtime-generated format string in our
vasnprintf implementation.
2013-04-12 23:05:58 +01:00
Tim-Philipp Müller
97b3948a9f
printf: fix up dodgy use of #if HAVE_FOO and #if !HAVE_FOO
...
Should use #ifdef and #ifndef.
2013-04-12 23:05:58 +01:00
Tim-Philipp Müller
79d6b91e27
printf: mark internal functions as internal
2013-04-12 23:05:57 +01:00
Tim-Philipp Müller
3778c1878c
printf: skip pointer extension signifier chars after %p
...
So they don't get printed after the serialised pointer string.
2013-04-12 23:05:57 +01:00
Tim-Philipp Müller
6d8a6470d5
printf: don't leak serialised pointer extension strings
2013-04-12 23:05:57 +01:00
Tim-Philipp Müller
9a9b449c5f
printf: handle old GST_PTR_FORMAT %P and GST_SEGMENT_FORMAT %Q defines too
...
For binary backwards compatibility.
2013-04-12 23:05:57 +01:00
Tim-Philipp Müller
5803da553c
printf: make printf parser recognise our pointer extension format
...
and call the hook to get a string for the pointer instead.
https://bugzilla.gnome.org/show_bug.cgi?id=613081
2013-04-12 23:05:57 +01:00
Tim-Philipp Müller
fe7f7135e0
printf: add infrastructure for pointer extensions hook
...
Does not do anything yet. On a sidenote, we can't just use
%p\001 or so to signal the extension because g-i complains
about an invalid ascii character then, so have to resort to
something more elaborate, such as %p\aA etc.
https://bugzilla.gnome.org/show_bug.cgi?id=613081
2013-04-12 23:05:57 +01:00
Tim-Philipp Müller
7b19944280
info: use new internal printf for debug message printing
...
and remove all the printf extension/specifier stuff for
the system printf. Next we need to add back the custom
specifiers to our own printf implementation.
https://bugzilla.gnome.org/show_bug.cgi?id=613081
2013-04-12 23:05:57 +01:00
Tim-Philipp Müller
8fc876f09f
printf: add our own printf implementation for debug logging
...
We will add support for our own printf modifiers, so we can
get nice debug log output on all operating systems irrespective
of the specific libc version used.
https://bugzilla.gnome.org/show_bug.cgi?id=613081
2013-04-12 23:05:56 +01:00
Wim Taymans
f45c84db02
taglist: avoid triggering an assertion
...
When deserialization of the structure fails, return a NULL taglist instead of
asserting.
2013-04-12 16:17:46 +01:00
Wim Taymans
396b49ec4d
buffer: add _gst_max_memory() function
...
Add the a function to query the maximum amount of memory blocks that can be
added to a buffer. Also improve the docs for _insert_memory().
2013-04-11 14:31:01 +01:00
Stefan Sauer
8d816e9527
bus: fix the precondition for gst_bus_disable_sync_message_emission()
...
Use the right variable and invert the test. The precondition should catch
someone calling to once too often.
2013-04-10 21:50:53 +02:00
Olivier Crête
787d973fb2
capsfeatures: Init debug category before ever using it
2013-04-09 19:37:06 -04:00
Руслан Ижбулатов
e745a2bcf0
clock: Do use HAVE_CLOCK_GETTIME
...
Fixes #697549
2013-04-09 20:33:27 +02:00
Sebastian Dröge
f7532a7e13
capsfeatures: Copy ANY flag when copying caps features too
2013-04-06 22:10:58 +02:00
Sebastian Dröge
91b3890d70
caps: Handle ANY caps features properly in more places
2013-04-06 21:49:25 +02:00
Sebastian Dröge
db6ee700f2
caps: Properly handle ANY caps features in caps operations
2013-04-06 21:09:49 +02:00
Stefan Sauer
627d111eb6
bus: update signal docs for gst_bus_enable_sync_message_emission()
2013-04-05 21:24:19 +02:00
Tim-Philipp Müller
cf69475aeb
caps: fix caps feature leak
...
Fixes leaks in 14 core unit tests including
gst/gstcaps.
2013-04-04 23:14:13 +01:00
Wim Taymans
6c62146031
structure: simplify is_subset check
...
Iterate over the fields of the superset instead of those of the subset.
This way we can check the presence of the subset field and do the subset check
in one iteration.
2013-04-04 17:59:10 +02:00
Wim Taymans
d92ce924e6
caps: update docs, is_subset() works now
2013-04-04 17:46:09 +02:00
Wim Taymans
ff0deeed9a
bufferpool: fix docs
2013-04-04 16:39:23 +02:00
Wim Taymans
3e1a430c22
pad: add gst_pad_store_sticky_event()
...
Rewire some internal functions and expose a new
gst_pad_store_sticky_event() function.
API: gst_pad_store_sticky_event()
2013-04-04 16:36:26 +02:00
Wim Taymans
1457c9c499
pad: clarify docs
2013-04-04 15:45:23 +02:00
Wim Taymans
e857030232
pad: improve debug
2013-04-04 15:45:15 +02:00
Wim Taymans
95c6cd37a8
segment: don't WARN, just DEBUG
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=696911
2013-04-04 10:17:30 +02:00
Nicolas Dufresne
ab44e14c52
segment: Fix seeking when position is slightly outside the segment
...
Very often, when the end of a segment is detected by demuxer, the position
is slightly outside the segment boundaries. Currently, if that is the case
the base will be set to NONE instead of normal accumulation. This would
break non-flushing seeks in oggdemux and most likely other demuxers.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=696899
2013-04-04 10:10:24 +02:00
Wim Taymans
e9c48043d1
gst: add stream flags
2013-04-03 16:45:46 +02:00
Tim-Philipp Müller
24cac0afa3
docs: more since markers and other docs fixes
2013-04-02 23:51:06 +01:00
Tim-Philipp Müller
ce77032133
docs: add since markers to capsfeatures docs
2013-04-02 23:21:39 +01:00
Sebastian Dröge
65c650d7d4
capsfeatures: Add GST_CAPS_FEATURES_ANY
...
This is equal to any other caps features but results in unfixed caps. It
would be used by elements that only look at the buffer metadata or are
currently working in passthrough mode, and as such don't care about any
specific features.
2013-04-02 22:17:22 +02:00
Tim-Philipp Müller
0dd761101c
info: minor cosmetic changes
...
Let's not use ugly leading underscores for
static functions.
2013-04-01 22:17:20 +01:00
Tim-Philipp Müller
cef9018eaf
info: fix object printing of caps features in debug log
2013-04-01 21:23:21 +01:00
Stefan Sauer
6465dbd647
info: refactor pretty printing objects
...
Extract formatters into local functions. Change the structure filtering so that
it works for taglists too.
2013-04-01 16:39:18 +02:00
Stefan Sauer
28b0cb5721
element: make post_message and query more alike
2013-04-01 16:39:17 +02:00
Sebastian Dröge
a838e5aa75
capsfeatures: For copying features it's not required to have no parent refcount
2013-04-01 10:19:25 +02:00
Sebastian Dröge
efcb4023e6
caps: Set features' parent refcount in gst_caps_set_features() too
2013-04-01 10:19:01 +02:00
Sebastian Dröge
ccd2966f7a
caps: Set sysmem features if explicitely requested
2013-04-01 10:18:39 +02:00
Sebastian Dröge
7477b25df5
caps: Add new data type for handling caps features to the caps
...
These are meant to specify features in caps that are required
for a specific structure, for example a specific memory type
or meta.
Semantically they could be though of as an extension of the media
type name of the structures and are handled exactly like that.
2013-03-31 18:15:52 +02:00
Tim-Philipp Müller
caa06788c3
event: add SELECT and UNSELECT stream flags for stream-start event
...
So demuxers can signal which audio/video/subtitle streams should
be selected by default and which should not be selected
automatically.
API: GST_STREAM_FLAG_SELECT
API: GST_STREAM_FLAG_UNSELECT
https://bugzilla.gnome.org/show_bug.cgi?id=695968
https://bugzilla.gnome.org/show_bug.cgi?id=690911
2013-03-31 15:30:19 +01:00
Tim-Philipp Müller
0e5c1dcf64
event: add stream flags to stream-start event
...
API: gst_event_set_stream_flags()
API: gst_event_parse_stream_flags()
API: GST_STREAM_FLAG_NONE
API: GST_STREAM_FLAG_SPARSE
https://bugzilla.gnome.org/show_bug.cgi?id=600648
2013-03-31 11:47:40 +01:00
Sebastian Dröge
dd831b8114
element: Add API to get the last set context from an element
...
Elements should override GstElement::set_context() and also call
gst_element_set_context() to keep this context up-to-date with
the very latest context they internally use.
2013-03-31 11:26:32 +02:00
Sebastian Dröge
f23db94fef
pad: Let gst_pad_get_allowed_caps() pass the caps own caps as filter
...
This will reduce the number of caps created downstream and we don't
need to intersect in the very end with the pad's own caps.
2013-03-30 11:48:27 +01:00
Stefan Sauer
ba8c0f5e4b
childproxy: fix gir warning
2013-03-29 19:16:45 +01:00
Edward Hervey
418dcd7277
pad: Remove SEGMENT sticky events when flushing
...
When flushing, it is expected that upstream will send a SEGMENT
event afterwards.
This also avoids stray SEGMENT events from coming through after a
flush.
2013-03-29 18:43:21 +01:00
Sebastian Dröge
b909061031
gst: Add new GstContext miniobject for sharing contexts in a pipeline
2013-03-29 16:40:21 +01:00