Commit graph

7119 commits

Author SHA1 Message Date
Tim-Philipp Müller
a4c7561b4c docs: flesh out gst_sample_get_buffer() a little
https://bugzilla.gnome.org/show_bug.cgi?id=706478
2013-08-26 13:29:58 +01:00
Kerrick Staley
cf594b8ea0 parse: make grammar.y work with Bison 3
YYLEX_PARAM is no longer supported in Bison 3.

https://bugzilla.gnome.org/show_bug.cgi?id=706462
2013-08-26 13:29:53 +01:00
Tim-Philipp Müller
091b04b457 docs: flesh out gst_element_query_{duration,position} docs a bit 2013-08-26 13:29:34 +01:00
Sebastian Dröge
07b2c7c80e pluginloader: Don't call memcpy() with NULL src and 0 length 2013-08-26 13:29:28 +01:00
Sebastian Dröge
b9cf399fbe sysmem: Only copy the requested part of memory instead of the complete source memory
https://bugzilla.gnome.org/show_bug.cgi?id=705678

Conflicts:
	gst/gstallocator.c
2013-08-26 12:45:12 +01:00
Andoni Morales Alastruey
6b5490b9b8 query: fix annotation for gst_query_parse_uri 2013-08-26 12:31:15 +01:00
Thiago Santos
35deb7b9c2 query: add some missing 'transfer none' gi annotations
The current documentation is controverse, while it states that the
returned value is valid only while the query is is valid, which presumes
a 'transfer none' policy. But the tooltip for the 'out' annotation
states the default is 'transfer-full'.

Add the missing 'transfer none' annotations to fix this.

Conflicts:
	gst/gstquery.c
2013-08-26 12:30:45 +01:00
Tim-Philipp Müller
ce7aef3def buffer: fix Since: marker for new gst_buffer_extract_dup() 2013-08-18 11:48:09 +02:00
Olivier Crête
2560624fb0 buffer: Add annotations and pygi friendly extraction function
API: gst_buffer_extract_dup

Conflicts:
	gst/gstbuffer.h
2013-08-18 11:47:38 +02:00
Tim-Philipp Müller
c329cc3aeb pipeline: g-i: allow clock to be NULL in gst_pipeline_use_clock()
https://bugzilla.gnome.org/show_bug.cgi?id=705751
2013-08-10 11:34:52 +01:00
Sebastian Dröge
80431b497d structure: gst_structure_copy() returns a new structure with (transfer full) 2013-07-22 08:35:40 +02:00
Sebastian Dröge
229592b71f query: gst_query_get_n_allocation_params() returns a new ref to the allocator 2013-07-19 18:54:36 +01:00
Tim-Philipp Müller
c062bf9ae8 allocator: fix type of gst_memory_alignment to match declaration
Fixes compiler warnings such as
gstallocator.c:61:8: error: conflicting types for 'gst_memory_alignment'
../gst/gstallocator.h:52:18: note: previous declaration of 'gst_memory_alignment' was here
2013-07-08 15:28:28 +01:00
Paul HENRYS
53e3b87fcb buffer: Fix wrong size/index handling when merging memory
https://bugzilla.gnome.org/show_bug.cgi?id=702617
2013-07-05 19:08:12 +01:00
Nicolas Dufresne
2616feed42 Add few missing allow-none annotation
https://bugzilla.gnome.org/show_bug.cgi?id=703562

Conflicts:
	gst/gstmessage.c
2013-07-03 14:28:39 -04:00
Sebastian Dröge
4137391174 structure: Make sure that subsets have all fields of the superset
"video/x-h264,parsed=(boolean)true" is not a superset of
"video/x-h264,stream-format=(string)byte-stream,alignment=(string)nal"
for example.

https://bugzilla.gnome.org/show_bug.cgi?id=693365
2013-05-28 14:11:20 +02:00
Olivier Crête
e16197a6c0 buffer: fix gobject-introspection annotations, esp. for gst_buffer_fill 2013-05-22 23:40:22 +01:00
Tim-Philipp Müller
6fee4c44e1 buffer: allow calling _fill() with a NULL data pointer if size is 0 bytes 2013-05-18 11:01:27 +01:00
Sebastian Dröge
26add2d13c gst: Add better support for static plugins
API: GST_PLUGIN_STATIC_DECLARE()
API: GST_PLUGIN_STATIC_REGISTER()

Based on a patch by Håvard Graff <havard.graff@tandberg.com>.

This now allows GST_PLUGIN_DEFINE() to create a static plugin if
GST_PLUGIN_BUILD_STATIC is defined. The resulting plugin can be
statically linked or dynamically linked during compilation but
can't be dynamically loaded during runtime.

Also adds GST_PLUGIN_STATIC_DECLARE() and GST_PLUGIN_STATIC_REGISTER(),
which allows to register a static linked plugin easily.
It is still required to manually register every single statically linked
plugin from inside the application as this can't be automated in a portable
way.

A new configure parameter --enable-static-plugins was added that allows
to build all plugins we build here as static plugins.

Fixes bug #667305.
2013-04-15 16:09:39 +02:00
Sebastian Dröge
c942fb3848 caps: Fix gst_static_caps_get(GST_STATIC_CAPS_NONE)
https://bugzilla.gnome.org/show_bug.cgi?id=696435
2013-04-15 08:20:04 +02:00
Wim Taymans
7452a47c71 taglist: avoid triggering an assertion
When deserialization of the structure fails, return a NULL taglist instead of
asserting.
2013-04-13 12:08:55 +01:00
Wim Taymans
e9d7f8cb37 bufferpool: fix docs 2013-04-04 16:40:22 +02:00
Nicolas Dufresne
c697912fcb 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:12:37 +02:00
Tim-Philipp Müller
f3293d37ce message: accept NULL error argument in gst_message_parse_{error,warning,info}
And simplify code a bit while at it.

https://bugzilla.gnome.org/show_bug.cgi?id=693704
2013-02-13 16:56:12 +00:00
Tim 'mithro' Ansell
926719a0bc gstvalue: Adding offset to GstSegment serialize/deserialize.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=693587
2013-02-11 14:21:49 +01:00
Wim Taymans
d5f6642cd7 bin: remove old comment
The iterators now return a GValue and not the object directly anymore.
2013-02-07 12:55:21 +01:00
Wim Taymans
40e150ba8d bin: reset GValue from iterator after usage 2013-02-07 12:55:14 +01:00
Stefan Sauer
030103596e debugutils: fix order of caps on an unnegotiated link
headlabel is the sink_pad (where the link points to) and not the other way around.
2013-02-05 18:42:43 +00:00
Stefan Sauer
e52bebfa57 docs: update the controller docs
Add the control bindings to the docs. Add a little more detail.
2013-02-05 18:42:43 +00:00
Nate Bogdanowicz
25c6490109 gstpipeline: fix failed assertion caused by seeking pipeline with NULL clock
Under certain GST_STATE_CHANGED_PAUSED_TO_PLAYING transitions, a pipeline with
a NULL clock will fail an assertion due to an unchecked call to gst_object_ref().
This is fixed by simply adding a check and only ref-ing if the clock is not NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=693065
2013-02-05 14:28:36 +01:00
Simon Feltman
dc7eca6264 g-i: add built enumtypes headers and sources to gir creation
Add gstenumtypes.h/c for inclusion with g-ir-scanner. This fixes
problems where introspection based bindings think GstState is
typeless due to the GType not being included as an annotation.

https://bugzilla.gnome.org/show_bug.cgi?id=691185
2013-01-27 21:00:25 +00:00
Niv Sardi
36d8f6b925 gst_pad_check_reconfigure: only remove flag if set.
the code ifed a debug statement, that can't be right. anyway, the way it is,
we don't really need that branch, as we set the flag to unset only if set
(and that can't fail) hence the end result is always to unset the flag.

Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=691985
2013-01-24 15:43:35 +01:00
Tim-Philipp Müller
0712bec95b pipeline: add allow-none annotation for gst_pipeline_new()'s name property 2013-01-17 10:33:57 +00:00
Stefan Sauer
e4f420640a controlbinding: hide one unused typedef
This is not used internally.
2013-01-17 09:33:16 +00:00
Stefan Sauer
4ad67a66f1 docs: improve api docs for controlsource and -binding 2013-01-17 09:33:12 +00:00
Tim-Philipp Müller
6b078905b4 docs: update since markers for new NO_RESYNC flag 2013-01-04 12:50:47 +00:00
Tim-Philipp Müller
b5364a76c3 docs: minor systemsclock doc fix 2013-01-04 12:30:39 +00:00
Wim Taymans
87a3fa5595 bin: add flag to disable resync state change
Add a GST_BIN_FLAG_NO_RESYNC that disables a resync when an element is added,
removed or linked in the bin. This is interesting for complex bins that
dynamically add elements to themselves and want to manage the state of those
elements without interference from resyncs.

See https://bugzilla.gnome.org/show_bug.cgi?id=690420
2013-01-04 12:24:01 +00:00
Wim Taymans
d75f4499e4 systemclock: add OTHER clock type
Add an OTHER clock type so that subclasses are able to mark themselves as
using some other clock source than the realtime or monotonic clock.
2013-01-04 12:23:17 +00:00
Wim Taymans
b11439c0df add debug category
Adding a debug category is nicer than logging to the default category
2012-12-14 15:33:32 +01:00
Wim Taymans
45692eb014 element: improve debug 2012-12-14 15:33:08 +01:00
Wim Taymans
d2c80488e1 plugin: protect against NULL filename in debug
See https://bugzilla.gnome.org/show_bug.cgi?id=689948
2012-12-10 13:44:47 +00:00
Wim Taymans
767018e971 bufferpool: clarify docs 2012-12-10 13:44:41 +00:00
Wim Taymans
28ae8612e6 caps: fix docs 2012-12-10 13:44:33 +00:00
Wim Taymans
5c29fac651 message: add reset-time type string 2012-12-10 13:44:19 +00:00
Tim-Philipp Müller
9fd8140c65 docs: remove all mention of g_thread_init()
It's been deprecated since GLib 2.32 and isn't needed any
longer.
2012-11-28 15:10:09 +00:00
Alessandro Decina
cae0c24cc0 event: fix annotation for gst_event_parse_stream_start 2012-11-24 13:56:14 +00:00
Tim-Philipp Müller
74029db89e pad: document more pad probe values 2012-11-24 13:56:09 +00:00
Tim-Philipp Müller
cefa4caf5e pad: don't use parenthesis for ORed pad probe flag enums
glib-mkenum doesn't like them for some reason.

https://bugzilla.gnome.org/show_bug.cgi?id=688804
2012-11-24 13:55:54 +00:00
Olivier Crête
86132dcb6d pad: Put all of the probe types in the enum so they work with bindings
https://bugzilla.gnome.org/show_bug.cgi?id=688804
2012-11-24 13:55:20 +00:00