Edward Hervey
60be53fabf
gstvalue: Remove useless assignment
2012-02-17 15:11:38 -08:00
Edward Hervey
963267643e
gstvalue: Gracefully handle NULL Gvalue
...
Avoids unreferencing NULL pointer
2012-02-17 15:11:38 -08:00
Wim Taymans
386562f7e4
pad: make some errors critical
...
When we have no chain function or when we are operating the pad in the wrong
mode, emit a critical instead of posting an error message. This is certainly a
programming error and we cannot always post a message (like when the pad has no
parent)
2012-02-18 00:03:41 +01:00
Wim Taymans
7fc783f723
info: also debug position of segment
2012-02-18 00:03:13 +01:00
Wim Taymans
592ead764c
task: add more debug
2012-02-15 12:18:38 +01:00
Wim Taymans
c6a1bed1ad
memory: more work on refcount and writability
...
Rename _is_writable() with _is_exclusive because the writability does not depend
on the amount of references to the memory object anymore.
Add accessor macros for the memory flags.
Rename the GstBuffer _peek_memory() method to _get_memory() and return a
reference to the memory now that we can do this without affecting writability
of the memory object. Make it possible to also make this function merge the
buffer memory.
Add methods to replace memory in a buffer. Make some convience macros for the
buffer memory functions.
Fix unit tests.
2012-02-13 18:04:03 +01:00
Wim Taymans
c32456224e
meta: fix typos
2012-02-13 16:42:56 +01:00
Tim-Philipp Müller
7329843fe6
event: make _parse_nth_stream_config_header() and _parse_setup_data() return a boolean
...
As they can fail (only one of stream headers or setup data
is usually present).
2012-02-12 21:05:45 +00:00
Tim-Philipp Müller
4d937fafbb
event: rename gst_event_{set,parse}_stream_config_codec_data() to _setup_data()
...
More generic.
2012-02-12 20:51:39 +00:00
Wim Taymans
151d7faca3
clean up object init
...
Make an _init method where the parent mini-object and other fields are
initialized.
Check that the passed structure doesn't already have a parent.
Use the _new_custom () constructors
2012-02-10 15:02:23 +01:00
Wim Taymans
c9a3051b37
pad: silence probe debug a litte
2012-02-10 12:05:18 +01:00
Wim Taymans
34f770a900
gst: add some performance logging
...
Add some performance logging for caps copy and the slow default acceptcaps
implementation
2012-02-10 11:09:01 +01:00
Wim Taymans
3d4a1a98b5
docs: update and improve docs
2012-02-09 11:48:02 +01:00
Tim-Philipp Müller
552d726c3a
utils: remove gst_element_class_install_std_props()
...
It's only used in one place (rtmp), and there not very well.
2012-02-09 00:14:58 +00:00
Wim Taymans
7ab1d62c24
GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING
2012-02-08 16:18:04 +01:00
Wim Taymans
92de0b6143
Merge branch 'master' into 0.11
2012-02-08 14:45:25 +01:00
Wim Taymans
bcf3daebd4
pad: error when activation mode is wrong
...
Post an error when we try to push on a pad activated in pull mode and pull on a
pad in push mode.
2012-02-08 12:57:11 +01:00
Wim Taymans
7cb4828e93
clock: remove method declaration too
2012-02-08 09:30:02 +01:00
Stefan Sauer
110e7c2d3c
clock: remove unimplemented stats property while we can
2012-02-07 13:41:20 +01:00
Wim Taymans
a46f0862cd
gst: improve debugging
2012-02-06 09:46:47 +01:00
Havard Graff
609e618e70
registry: fix compilation with --disable-registry
...
__registry_reuse_plugin_scanner is only defined when
GST_DISABLE_REGISTRY is not defined.
gstregistry.c: In function 'gst_registry_scan_plugin_file':
gstregistry.c:1131:8: error: '__registry_reuse_plugin_scanner' undeclared (first use in this function)
https://bugzilla.gnome.org/show_bug.cgi?id=667284
2012-02-04 15:52:21 +00:00
Vincent Penquerc'h
ec7a7c318a
bin: reset the EOS detection machinery after sending an EOS message
...
This will allow detecting further EOS, for instance after looping
a stream without changing states.
https://bugzilla.gnome.org/show_bug.cgi?id=668289
2012-02-03 11:23:28 +00:00
Wim Taymans
da793d7255
trace: print caps in dump
2012-02-02 16:59:12 +01:00
Wim Taymans
18ddee3b45
memory: add debug and trace for GstMemory
2012-02-02 15:57:48 +01:00
Wim Taymans
5d6999f804
trace: don't check random pointers for objects
...
Only see if the traced pointer is a GObject when it was registered with the
special offset of -2.
2012-02-02 15:55:44 +01:00
Wim Taymans
e60b67f907
Update debug categories
...
Remove some categories marked for deletion.
Add a category for GstMemory.
2012-02-02 15:54:28 +01:00
Wim Taymans
f5886a17f5
remove TRACE_NAME from headers
2012-02-02 15:52:19 +01:00
Wim Taymans
d8c12ceb2b
memory: add some performce debug info
...
Add some PERFORMANCE debug lines where we copy and do other suboptimal things.
2012-02-02 12:07:28 +01:00
Wim Taymans
d54fbe677f
pad: add flag to proxy allocation query
...
Add a flag to force the default query handler to forward the allocation query
instead of discarding it.
Reorder the pad flags a bit.
2012-02-02 12:05:37 +01:00
Tim-Philipp Müller
83002ac63e
typefind: pass extensions as comma-separated list in a simple string
...
Fix annoying gst_type_find_register() function signature. A simple
string with comma-separated extensions works just as well and saves
lines of code, casts, relocations and ultimately kittens.
2012-02-02 01:32:07 +00:00
Wim Taymans
76a60c4c42
element: don't crash on missing template
...
Some request pads don't have a padtemplate (mostly those from encodebin). Avoid
crashing in this case.
2012-01-31 16:27:55 +01:00
Wim Taymans
39c5f0b28a
don't do logic in g_assert...
2012-01-31 12:10:21 +01:00
Stefan Sauer
4deaf9b8be
controller: rename control-bindings
...
gst_control_binding_xxx -> gst_xxx_control_binding for consistency.
2012-01-30 21:18:57 +01:00
João Paulo Pizani Flor
3af9544f95
Fixes the lack of an include directive in gst/gstpreset.h
...
It blocked the build of external libraries depending on gstreamer-core (namely, gstreamermm).
Complete bug report at https://bugzilla.gnome.org/show_bug.cgi?id=669036
2012-01-30 17:22:59 +00:00
Stefan Sauer
c4bee19a25
controlsource: sink the floating ref
...
control sources can be used on several control bindings.
2012-01-30 18:18:28 +01:00
Wim Taymans
c35a41bb54
buffer; remove IN_CAPS buffer flag
...
The IN_CAPS buffer flag is deprecated and should be replaced with the HEADER
flag.
2012-01-30 17:15:21 +01:00
Wim Taymans
0bd5a78701
query: pass allocator in query
...
Place the allocator object in the ALLOCATION query instead of the name. This
allows us to exchange allocators that are not in the global pool of allocators.
Update elements for the new api
2012-01-30 16:13:31 +01:00
Wim Taymans
16d9a9efbe
memory: add memory type
...
Add memory type when registering memory allocators. Add getter for the memory
type.
2012-01-30 16:13:31 +01:00
Wim Taymans
f8c6cd196e
memory: add boxed GType for the allocator
2012-01-30 13:28:34 +01:00
Wim Taymans
af2fc026fc
memory: make the allocator refcounted
...
Add refcounting to the GstAllocator object.
Remove const from functions because the allocator is refcounted now.
Rename the vmethods for consistency
Expose the constructor for GstAllocator and add a destroy notify for the
user_data. This should make it possible to create allocators that are not
registered and shared globally along with the possibility to destroy them
properly.
Update defs with new symbols.
2012-01-30 13:20:36 +01:00
Philippe Normand
bd9d196700
core: don't ship gsttrace.h private header
...
Include it explicitely in gst.c and no longer include it in gst.h.
That header was made private in 1969b94267
.
2012-01-30 10:15:33 +01:00
Tim-Philipp Müller
51f6f5addf
event: require a valid duration for the GAP event
2012-01-28 18:50:23 +00:00
Tim-Philipp Müller
e115c28ae4
gst: ref new enum type in gst_init()
2012-01-28 18:49:44 +00:00
Tim-Philipp Müller
783a9d61b9
docs: add some (out) annotations for stream config parser functions
2012-01-28 18:10:30 +00:00
Tim-Philipp Müller
068d9ecf5a
event: add constructor and parse function for new GAP event
...
(Whatever you do, don't mention the filler event.)
2012-01-28 18:09:01 +00:00
Tim-Philipp Müller
0b5734557e
docs: GST_EVENT_STREAM_CONFIG is implemented now
2012-01-28 18:09:00 +00:00
Olivier Crête
e234a10c63
Use macros to register boxed types thread safely
2012-01-28 16:42:38 +00:00
Sebastian Dröge
705d17c8a8
segment: Add padding to the public struct
2012-01-27 18:47:13 +01:00
Tim-Philipp Müller
f1f11098fe
gst: don't ref GType for private enum for which there's no GType any more
2012-01-27 17:45:39 +00:00
Tim-Philipp Müller
75e17f0002
event: add construct and parse API for the new STREAM CONFIG event
...
codec data and stream headers don't belong into caps, since they
are not negotiated. We signal them using the STREAM CONFIG event
instead.
2012-01-27 17:42:07 +00:00