Jan Schmidt
d781d09d99
gstvalue: Do more checks when guessing at flagset strings
...
If guessing that a string matches a flagset, be more thorough
at checking that the string following a string of hex:hex:
actually looks like a flag set string. Add some unit tests
to catch more cases.
https://bugzilla.gnome.org/show_bug.cgi?id=779755
2017-03-09 12:09:57 +11:00
Tim-Philipp Müller
fdd5665b66
elementfactory: promote factory not found log message to WARNING
...
In most cases people really want to know when an element
could not be created.
2017-03-08 14:51:42 +00:00
Tim-Philipp Müller
c90d3e9d5a
info: document that logging macros don't need newlines at the end
...
https://bugzilla.gnome.org/show_bug.cgi?id=779459
2017-03-03 12:53:26 +00:00
Tim-Philipp Müller
08ee7a86ed
pad: add since marker to docs for new API
2017-02-24 21:35:27 +00:00
Thibault Saunier
18a5cff70c
registry: Only scan plugin files that end with an extension
...
Not file that would for some reason end with 'so' or 'dll', etc...
https://bugzilla.gnome.org/show_bug.cgi?id=779175
2017-02-24 16:16:39 -03:00
Thibault Saunier
6326c764ee
pad: Add API to get the current state of a task
...
Avoiding the user to need to deal with the locking himself etc.
API:
gst_pad_task_get_state
https://bugzilla.gnome.org/show_bug.cgi?id=778830
2017-02-24 16:16:23 -03:00
Thibault Saunier
d6dba3fd6f
meson: Add an option to disable usage of libunwind
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=778193
2017-02-24 16:16:23 -03:00
Vivia Nikolaidou
63775ac6e3
value: Add deserialization for arrays/lists outside GstStructures
...
This is mostly useful for properties of those types when used in
gst-launch or similar.
https://bugzilla.gnome.org/show_bug.cgi?id=777375
2017-02-23 21:00:16 +02:00
Sebastian Dröge
ba49927aaf
value: Add a type abbreviation for GstFlagSet in serialization
2017-02-23 20:50:38 +02:00
Vivia Nikolaidou
a3cfcbfede
value: Always add the type name to elements when serializing arrays/lists
...
But only when serializing outside of GstStructures, because in case of
GstStructure the type is already preprended to the array/list and the
GstStructure API makes sure that they have the same "generic" type so
deserialization works properly.
This keeps serialization of GstStructures the same as before, and the
GstCaps unit tests already test for that. However when serializing
standalone arrays/lists get the types added now.
2017-02-23 20:48:40 +02:00
Vivia Nikolaidou
33118f6118
value: Move list/array serialization/deserialization functions from GstStructure to GstValue
...
https://bugzilla.gnome.org/show_bug.cgi?id=777375
2017-02-23 20:22:03 +02:00
Vivia Nikolaidou
978df5d0ff
paramspecs: Add GstParamSpecArray for GST_TYPE_ARRAY typed properties
...
These are mostly useful to get our automatic
serialization/deserialization from strings and simple usage from
gst-launch or similar.
https://bugzilla.gnome.org/show_bug.cgi?id=777375
2017-02-23 20:16:17 +02:00
Wim Taymans
a15f7ad8f8
info: put () around macro arguments
...
Put braces around macro arguments or else we might run into problems
with operater precedence.
2017-02-20 12:16:32 +01:00
Wim Taymans
c1bcf748cc
deviceproviderfactory: ignore empty classes
2017-02-20 10:45:57 +01:00
Wim Taymans
50cb645d1f
deviceproviderfactory: compare class against NULL
...
gstdeviceproviderfactory.c:501:20: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
if (classes[0] == '\0')
2017-02-20 10:25:50 +01:00
Nirbheek Chauhan
cd9e154c73
meson: Fix build with latest upstream git
...
Trivial incorrect include_directories() call
2017-02-18 16:49:40 +05:30
Peter Korsgaard
c893882fd9
gstconfig: Fix unaligned access support for the openrisc architecture
...
Teach gstconfig.h.in about the openrisc (or1k) architecture. Fixes
buildroot autobuild failure:
http://autobuild.buildroot.net/results/717/717d78ce0935749f477bdf3133b6f20057a28c01/build-end.log
https://bugzilla.gnome.org/show_bug.cgi?id=778866
2017-02-18 11:53:30 +02:00
Stefan Sauer
5bb137e9ee
pad: revert the content changes from previous commit
...
The default behaviour when returning GST_PAD_PROBE_OK is unrelated to
the other return code.
2017-02-15 20:58:49 +01:00
Stefan Sauer
ed7d1b668b
pad: fix docs for GstPadProbeReturn
...
There is no 'block' value, but we have 'drop'. Also fix the markup; it
is '%' to link to constants (and enum values).
2017-02-15 20:37:40 +01:00
Sebastian Dröge
ef42e3811e
parse: Don't translate the "bin" element name
...
Otherwise we won't be able to create bins, there is no element called
"Behälter" if you're using a German locale.
https://bugzilla.gnome.org/show_bug.cgi?id=777998
2017-01-31 21:20:22 +02:00
Seungha Yang
15f2898e87
segment: Modifiy inside segment condition
...
There is a special case that segment_start == segment_stop == start.
It's inside of segment
https://bugzilla.gnome.org/show_bug.cgi?id=764707
2017-01-31 15:55:12 +01:00
Thibault Saunier
94da8f5d8d
info: Check libunwind return codes
2017-01-27 16:49:56 -03:00
Thibault Saunier
a87b4551a6
Port gtk-doc comments to their equivalent markdown syntax
...
Modernizing our documentation and preparing a possible move to hotdoc.
This commits also adds missing @title metadatas to all SECTIONs
2017-01-27 16:36:38 -03:00
Thibault Saunier
76f049bc49
gst: Fix includes so that files can be built separately
...
It used to work but it has broke in the 1.10 cycle.
2017-01-27 16:33:42 -03:00
Thibault Saunier
6c9a092def
gstpoll: Encode in utf-8
2017-01-27 16:30:02 -03:00
Brendan Shanks
e286e81856
GstStream/GstStreamCollection: add g_autoptr() support
...
https://bugzilla.gnome.org/show_bug.cgi?id=777810
2017-01-27 00:07:51 +00:00
Stefan Sauer
a533b6c2f9
bin: update the docs for the event forwarding
...
First this sends the events not only to the sources and 2nd this is not only
for seek events.
2017-01-18 22:39:33 +01:00
Sebastian Dröge
80c5fd50db
parse: Don't hold element's object lock while querying element pads' caps
...
This can easily deadlock if the element uses the object lock for
something internally, like posting an error message. Use an GstIterator
for iterating over the pads instead.
https://bugzilla.gnome.org/show_bug.cgi?id=777449
2017-01-18 15:43:13 +02:00
Jan Schmidt
b3296183fc
gstbin: Quieten a noisy FIXME about duration caching
...
Only print this FIXME once per run, at it's pretty annoying in
lots of logs otherwise.
2017-01-16 09:44:15 +11:00
Tim-Philipp Müller
0a1baf6d07
datetime: fix potential out-of-bound read on malformed datetime string
...
https://bugzilla.gnome.org/show_bug.cgi?id=777263
2017-01-15 11:53:41 +00:00
Tim-Philipp Müller
c950d8b3cb
pad: clarify docs for GST_PAD_PROBE_DROP
2017-01-03 12:30:02 +00:00
Jan Schmidt
246618125f
padtemplate: Fix null pointer dereference on invalid static caps
...
A typo in a static caps string may result in failure to
deserialise it, so don't dereference the result without
checking.
2017-01-03 02:21:10 +11:00
Jan Schmidt
269699f621
caps: Fix null pointer dereference on invalid static caps
...
A typo in a static caps string may result in failure to
deserialise it, so don't dereference the result without
checking.
2017-01-03 02:21:10 +11:00
Stefan Sauer
d118ed3deb
structure: reword comment for gst_structure_parse_string()
...
The comment was a bit confusing. Turn it into gtkdoc style and reword it.
2016-12-30 19:42:57 +01:00
Stefan Sauer
ee52459a5e
info: re-eval GST_DEBUG env var for late categories
...
When registering a new debug category after _debug_init(), we need to
re check the GST_DEBUG filter settings again.
In addition when parsing the filter setting, we need to already bump up
the min-debug level to not suppress debug log statments that dynamically
register a category. This happens in libraries that use a function to
register a category on first use.
2016-12-30 12:10:15 +01:00
Thibault Saunier
89799ae90c
gstpreset: Lower some debug logs level
...
A property not defined in a preset file can simply mean that the
user wants it to be set as it default value, and we should not warn
about that.
A missing preset file in a directory can happen has there are several
directory where a preset can be found in.
2016-12-22 16:28:03 -03:00
Nirbheek Chauhan
9e5d1370c8
meson: Fix order of C source and header in mkenums
...
Otherwise gstenum_h dependencies don't get added properly to gst_dep and
we see racy build failures everywhere.
2016-12-22 23:39:39 +05:30
Tim-Philipp Müller
21d3f9a0e4
meson: use gnome.mkenums() with template files for enum file gen
...
Saves us a custom script. Template files are nicer than passing
multiline templating stuff through to glib-mkenums. And we can
get rid of our custom python script.
2016-12-22 11:35:04 +00:00
Sebastian Dröge
597e43cffc
element: Add guard to gst_element_release_pad() to ensure the pad belongs to this element
...
It's a programming error to pass other pads here, and it easily causes
crashes or other problematic behaviour down the road as subclasses
usually assume to only get their pads.
2016-12-22 12:08:14 +02:00
Nirbheek Chauhan
aefc8007c6
meson: Add several missing features from configure.ac
...
* -Wl,-Bsymbolic-functions
* HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID
* HAVE_POSIX_TIMERS
* HAVE_MONOTONIC_CLOCK
* HAVE_UINT128_T
* HAVE_LONG_LONG
* HAVE_PROCESS_H
* HAVE_GMP
* HAVE_GSL
* HAVE_DLADDR
Also, don't use prefix for checking functions, and only check msvc
functions on Windows.
2016-12-21 23:51:36 +05:30
Stefan Sauer
b8476f2de1
tracerrecord: improve the values flags docs
2016-12-20 21:08:09 +01:00
Thibault Saunier
30133909ce
leaks: Allow tracing Gst(Mini)Object reffing operations
...
It makes it much simpler to later debug refcount issues.
https://bugzilla.gnome.org/show_bug.cgi?id=775541
2016-12-20 15:29:10 -03:00
Nirbheek Chauhan
4d179024f0
meson: Don't search for python3 twice
2016-12-17 00:00:11 +05:30
Matthew Waters
ad40c5cd36
value: add structure intersect/union/is_subset/fixate implementations
...
Allows proper usage of structures in structures in caps. Subtraction
is not implemented due to complications with empty fields representing
all possible values.
The only implementation that doesn't delegate to the already existing
GstStructure functions is the union function.
https://bugzilla.gnome.org/show_bug.cgi?id=775796
2016-12-15 13:39:57 +11:00
Tim-Philipp Müller
ca4ac71555
buffer: add gst_buffer_iterate_meta_filtered()
...
For convenience. Pretty much every user of
gst_buffer_iterate_meta() filters for a specific
api type.
https://bugzilla.gnome.org/show_bug.cgi?id=775727
2016-12-14 18:18:43 +00:00
Tim-Philipp Müller
de65b88d13
buffer: mark gst_buffer_iterate_meta() as 'skip' for bindings
...
The pointer state arg won't work well, bindings can use
the foreach function instead.
https://bugzilla.gnome.org/show_bug.cgi?id=775727
2016-12-14 15:23:41 +00:00
Iñaki García Etxebarria
9cdacefa98
g-i: Fix annotations for gst_event_new_select_streams() and gst_event_parse_select_streams()
...
A gchar is not a string.
https://bugzilla.gnome.org/show_bug.cgi?id=775944
2016-12-14 09:07:14 +00:00
Reynaldo H. Verdejo Pinochet
eb9c8bdf66
gstpad: only warn on performance penalty if not using the template caps
...
After b76ecfd992
introduced
GST_PAD_FLAG_ACCEPT_TEMPLATE, the performance penalty this
message is refering to (the cascading ACCEPT_CAPS query)
only applies to the cases where !GST_PAD_IS_ACCEPT_TEMPLATE
2016-12-14 00:01:34 -08:00
Stefan Sauer
96304d613f
gstvalue: add serialisation for GTypes
...
We need this in the GstTracerRecord. This will serialize GTypes to the typename
and vice versa.
2016-12-13 13:24:18 +01:00
Thibault Saunier
97b6d8fb12
gst: Fix building with msvc
2016-12-13 09:21:16 -03:00