platform/upstream/gstreamer.git
12 years agogstbuffer: Add transfer annotations for gst_buffer_join()
Edward Hervey [Fri, 14 Oct 2011 07:35:09 +0000 (09:35 +0200)]
gstbuffer: Add transfer annotations for gst_buffer_join()

12 years agogst-inspect: Don't leak plugin feature list
Edward Hervey [Fri, 14 Oct 2011 07:27:38 +0000 (09:27 +0200)]
gst-inspect: Don't leak plugin feature list

12 years agobasesrc: fix caps leak
René Stadler [Thu, 13 Oct 2011 10:23:59 +0000 (12:23 +0200)]
basesrc: fix caps leak

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Thu, 13 Oct 2011 06:51:42 +0000 (08:51 +0200)]
Merge branch 'master' into 0.11

Conflicts:
gst/gstutils.c
libs/gst/base/gstbasesrc.c

12 years agoghostpad: Do not unref the internal pad twice
Thiago Santos [Wed, 12 Oct 2011 21:14:00 +0000 (18:14 -0300)]
ghostpad: Do not unref the internal pad twice

g_value_unset should already unref the internal proxypad, no
need to do it again

12 years agobasesrc: properly adjust start time
Wim Taymans [Wed, 12 Oct 2011 15:17:09 +0000 (17:17 +0200)]
basesrc: properly adjust start time

When we do a non-flushing seek and closed the current segment,
make sure that we open the next segment from where we closed.

12 years agoevent: add transfer type for gst_event_new_caps argument
René Stadler [Wed, 12 Oct 2011 12:37:31 +0000 (14:37 +0200)]
event: add transfer type for gst_event_new_caps argument

These annotations are useful to humans as well...

12 years agocapsfilter: fix caps leak
René Stadler [Wed, 12 Oct 2011 12:34:24 +0000 (14:34 +0200)]
capsfilter: fix caps leak

gst_event_new_caps does not steal a reference to the caps.

12 years agoevent: fix gst_event_new_segment transfer type
René Stadler [Wed, 12 Oct 2011 11:31:48 +0000 (13:31 +0200)]
event: fix gst_event_new_segment transfer type

12 years agotests: Fix more leaks
Edward Hervey [Tue, 11 Oct 2011 11:54:45 +0000 (13:54 +0200)]
tests: Fix more leaks

12 years agocapsfilter: Don't leak caps
Edward Hervey [Tue, 11 Oct 2011 11:53:39 +0000 (13:53 +0200)]
capsfilter: Don't leak caps

12 years agobasetransform: Fix a caps leak and move a codeblock
Edward Hervey [Tue, 11 Oct 2011 11:51:54 +0000 (13:51 +0200)]
basetransform: Fix a caps leak and move a codeblock

The result from the block of code that was moved would only have
been used if 'peercaps' was present.

12 years agogst: More 'transfer' annotations
Edward Hervey [Tue, 11 Oct 2011 11:51:37 +0000 (13:51 +0200)]
gst: More 'transfer' annotations

12 years agoutils: catch invalid instance sizes in gst_type_register_static_full()
Tim-Philipp Müller [Mon, 10 Oct 2011 18:41:33 +0000 (19:41 +0100)]
utils: catch invalid instance sizes in gst_type_register_static_full()

Add guards to catch overly large instance sizes.

https://bugzilla.gnome.org/show_bug.cgi?id=660955

12 years agoutils: remove gst_type_register_static_full()
Tim-Philipp Müller [Mon, 10 Oct 2011 18:30:34 +0000 (19:30 +0100)]
utils: remove gst_type_register_static_full()

It was only really used by GST_BOILERPLATE, and that is no more.

https://bugzilla.gnome.org/show_bug.cgi?id=660955

12 years agobasesrc: avoid trying to alloc enormous buffer
Thiago Santos [Mon, 10 Oct 2011 14:47:42 +0000 (11:47 -0300)]
basesrc: avoid trying to alloc enormous buffer

If a class extending basesrc doesn't set blocksize, basesrc
would try to allocate a (guint)-1 sized buffer, which is enormous
and likely would fail.

Avoid it and error out.

12 years agoporting: update
Edward Hervey [Mon, 10 Oct 2011 15:17:37 +0000 (17:17 +0200)]
porting: update

12 years agoghostpad: If we don't control a pad/template, return proper caps
Edward Hervey [Mon, 10 Oct 2011 15:04:39 +0000 (17:04 +0200)]
ghostpad: If we don't control a pad/template, return proper caps

If there's a filter, we can return that in _get_caps()

12 years agogstpad: Specify transfer full for gst_pad_get_caps()
Edward Hervey [Mon, 10 Oct 2011 14:52:43 +0000 (16:52 +0200)]
gstpad: Specify transfer full for gst_pad_get_caps()

It increments the reference count of the returned caps.

12 years agogstpad: Add debug to know what events are transferred between pads
Edward Hervey [Mon, 10 Oct 2011 09:02:08 +0000 (11:02 +0200)]
gstpad: Add debug to know what events are transferred between pads

12 years agogstpad: Unset EOS event on FLUSH_STOP
Edward Hervey [Mon, 10 Oct 2011 08:38:12 +0000 (10:38 +0200)]
gstpad: Unset EOS event on FLUSH_STOP

12 years agogstpad: Don't ignore downstream FlowReturn with IDLE probes
Edward Hervey [Fri, 7 Oct 2011 09:49:19 +0000 (11:49 +0200)]
gstpad: Don't ignore downstream FlowReturn with IDLE probes

If pushgin downstream returned a non-ok value (like GST_FLOW_WRONG_STATE),
we don't want to end up returning a different value (GST_FLOW_OK in this
case) if IDLE probes are present.

12 years agoporting: update
Wim Taymans [Mon, 10 Oct 2011 11:23:09 +0000 (13:23 +0200)]
porting: update

12 years agoporting: update
Wim Taymans [Mon, 10 Oct 2011 10:54:54 +0000 (12:54 +0200)]
porting: update

12 years agoporting: update
Wim Taymans [Mon, 10 Oct 2011 10:38:35 +0000 (12:38 +0200)]
porting: update

12 years agoporting: update
Wim Taymans [Mon, 10 Oct 2011 10:27:52 +0000 (12:27 +0200)]
porting: update

12 years agoporting: update
Wim Taymans [Mon, 10 Oct 2011 09:49:46 +0000 (11:49 +0200)]
porting: update

12 years agocompat: add compat define for UNEXPECTED
Wim Taymans [Mon, 10 Oct 2011 09:36:23 +0000 (11:36 +0200)]
compat: add compat define for UNEXPECTED

12 years agopad: GST_FLOW_UNEXPECTED -> GST_FLOW_EOS
Wim Taymans [Mon, 10 Oct 2011 09:33:51 +0000 (11:33 +0200)]
pad: GST_FLOW_UNEXPECTED -> GST_FLOW_EOS

12 years agoporting: update
Wim Taymans [Mon, 10 Oct 2011 09:30:21 +0000 (11:30 +0200)]
porting: update

12 years agotests: tee: Remember to initialize variables to NULL
Thiago Santos [Sun, 9 Oct 2011 14:49:45 +0000 (11:49 -0300)]
tests: tee: Remember to initialize variables to NULL

app_thread needs to be initialized to NULL, otherwise tests
will try to use it and crash

12 years agoUpdate common for check-exports script changes
Tim-Philipp Müller [Sat, 8 Oct 2011 19:56:59 +0000 (20:56 +0100)]
Update common for check-exports script changes

12 years agoelementfactory: don't export private _gst_elementclass_factory quark
Tim-Philipp Müller [Sat, 8 Oct 2011 19:46:22 +0000 (20:46 +0100)]
elementfactory: don't export private _gst_elementclass_factory quark

12 years agoinfo: make _gst_debug_init() private for now
Tim-Philipp Müller [Sat, 8 Oct 2011 19:15:46 +0000 (20:15 +0100)]
info: make _gst_debug_init() private for now

This was a FIXME for 0.11. I guess a case could be made to keep it around
separately for apps or libraries that only want to use GStreamer's debugging
system, but it seems more likely they'd just copy the two source files into
their own tree if the case. Also, things like types wouldn't be initialised
without gst_init(). We can still make it public again if anyone needs it,
but then we should make it a proper function and not hide it behind
underscores.

12 years agoMerge remote-tracking branch 'origin/master' into symbol-exports
Tim-Philipp Müller [Sat, 8 Oct 2011 18:54:06 +0000 (19:54 +0100)]
Merge remote-tracking branch 'origin/master' into symbol-exports

12 years agogstparse: prefix generated parser functions so they don't get exported
Tim-Philipp Müller [Sat, 8 Oct 2011 13:17:25 +0000 (14:17 +0100)]
gstparse: prefix generated parser functions so they don't get exported

Don't export those 35-something random _gst_parse_yy* symbols. These were
never in any header files and also blacklisted from our .def files, in
case anyone wonders.

12 years agoinfo: rename __gst_debug_* to _gst_debug_* and fix symbol export regexp
Tim-Philipp Müller [Sat, 8 Oct 2011 12:37:09 +0000 (13:37 +0100)]
info: rename __gst_debug_* to _gst_debug_* and fix symbol export regexp

Only export GStreamer symbols with one leading underscore, not two
or more leading underscores.

Requires a rebuild of the entire stack, sorry.

12 years agoporting: update doc
Wim Taymans [Sat, 8 Oct 2011 13:16:59 +0000 (15:16 +0200)]
porting: update doc

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Sat, 8 Oct 2011 12:25:02 +0000 (14:25 +0200)]
Merge branch 'master' into 0.11

12 years agoporting: update
Wim Taymans [Sat, 8 Oct 2011 12:23:30 +0000 (14:23 +0200)]
porting: update

12 years agoporting: upate porting list
Wim Taymans [Sat, 8 Oct 2011 10:08:49 +0000 (12:08 +0200)]
porting: upate porting list

12 years agoinfo: port to 0.11
Wim Taymans [Sat, 8 Oct 2011 07:41:54 +0000 (09:41 +0200)]
info: port to 0.11

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Sat, 8 Oct 2011 07:28:02 +0000 (09:28 +0200)]
Merge branch 'master' into 0.11

Conflicts:
gst/gstpad.c

12 years agopipeline: Use pipeline category for one more log message
Thiago Santos [Fri, 7 Oct 2011 12:45:20 +0000 (09:45 -0300)]
pipeline: Use pipeline category for one more log message

Makes debugging easier.

12 years agoGST_PTR_FORMAT: Add GstBuffer ptr format and use in GST_SCHEDULING
Robert Swain [Fri, 7 Oct 2011 14:36:10 +0000 (16:36 +0200)]
GST_PTR_FORMAT: Add GstBuffer ptr format and use in GST_SCHEDULING

GstBuffer pointers can now be printed using GST_PTR_FORMAT. This is used
in the very useful GST_SCHEDULING debug logs in gstpad.c and allows for
easier and more information tracking of buffer progress through a
pipeline with just debug logging.

12 years agotests: fix compiler warnings in sinks test
Tim-Philipp Müller [Fri, 7 Oct 2011 12:55:18 +0000 (13:55 +0100)]
tests: fix compiler warnings in sinks test

12 years agobase: make GstDataQueue private API for multiqueue
Tim-Philipp Müller [Fri, 7 Oct 2011 12:54:51 +0000 (13:54 +0100)]
base: make GstDataQueue private API for multiqueue

There's no code that uses it other than multiqueue, so make it private
to multiqueue for now. That way we can also do optimisations that
require API/ABI breaks. If anyone ever wants to use it, we can still
make it public again.

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Thu, 6 Oct 2011 15:27:47 +0000 (17:27 +0200)]
Merge branch 'master' into 0.11

12 years agoporting: update list
Wim Taymans [Thu, 6 Oct 2011 15:26:02 +0000 (17:26 +0200)]
porting: update list

12 years agobaseparse: send duration message when updating internal duration
Mark Nauwelaerts [Thu, 6 Oct 2011 12:34:09 +0000 (14:34 +0200)]
baseparse: send duration message when updating internal duration

12 years agoporting: update list
Wim Taymans [Thu, 6 Oct 2011 12:04:05 +0000 (14:04 +0200)]
porting: update list

12 years agoupdate porting list
Wim Taymans [Thu, 6 Oct 2011 08:59:09 +0000 (10:59 +0200)]
update porting list

12 years agoporting: update list
Wim Taymans [Wed, 5 Oct 2011 18:06:51 +0000 (20:06 +0200)]
porting: update list

12 years agoporting: update porting status
Wim Taymans [Wed, 5 Oct 2011 11:43:46 +0000 (13:43 +0200)]
porting: update porting status

12 years agogstbufferpool: Use glib compat macros for atomic pointers
Edward Hervey [Wed, 5 Oct 2011 09:20:37 +0000 (11:20 +0200)]
gstbufferpool: Use glib compat macros for atomic pointers

12 years agoupdate porting list
Wim Taymans [Tue, 4 Oct 2011 16:55:20 +0000 (18:55 +0200)]
update porting list

12 years agobuffer: improve docs
Wim Taymans [Tue, 4 Oct 2011 16:55:09 +0000 (18:55 +0200)]
buffer: improve docs

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Tue, 4 Oct 2011 15:39:17 +0000 (17:39 +0200)]
Merge branch 'master' into 0.11

12 years agoupdate porting list
Wim Taymans [Tue, 4 Oct 2011 15:36:26 +0000 (17:36 +0200)]
update porting list

12 years agogstevent: specify (transfer) for gst_event_new_segment
Edward Hervey [Tue, 4 Oct 2011 13:55:05 +0000 (15:55 +0200)]
gstevent: specify (transfer) for gst_event_new_segment

12 years agoadd porting list
Wim Taymans [Tue, 4 Oct 2011 11:16:14 +0000 (13:16 +0200)]
add porting list

12 years agobaseparse: Return success if optional start/stop method is not provided
Stas Sergeev [Mon, 26 Sep 2011 10:36:46 +0000 (14:36 +0400)]
baseparse: Return success if optional start/stop method is not provided

This allows to not implement the optional start/stop methods.

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Mon, 3 Oct 2011 08:06:17 +0000 (10:06 +0200)]
Merge branch 'master' into 0.11

Conflicts:
libs/gst/base/gstbaseparse.c

12 years agogstquery: Make debugging message more informative
Edward Hervey [Mon, 3 Oct 2011 07:29:10 +0000 (09:29 +0200)]
gstquery: Make debugging message more informative

For all the newcomers out there who still don't know the values of
GstQueryType enum by heart...
... and old-timers who've got better things to do :)

12 years agobaseparse: make estimating the position in query handler actually work
Tim-Philipp Müller [Fri, 30 Sep 2011 14:25:20 +0000 (15:25 +0100)]
baseparse: make estimating the position in query handler actually work

No point estimating if we don't set the result afterwards.

12 years agobaseparse: answer position query in stream time and try upstream first
Vincent Penquerc'h [Mon, 26 Sep 2011 12:14:42 +0000 (13:14 +0100)]
baseparse: answer position query in stream time and try upstream first

Let the demuxer have first say as well.

https://bugzilla.gnome.org/show_bug.cgi?id=659485

12 years agogst.h: include header for atomic queue
Tim-Philipp Müller [Fri, 30 Sep 2011 13:52:01 +0000 (14:52 +0100)]
gst.h: include header for atomic queue

12 years agotests: add minimal test for GstAtomicQueue
Tim-Philipp Müller [Fri, 30 Sep 2011 13:50:51 +0000 (14:50 +0100)]
tests: add minimal test for GstAtomicQueue

Just new + free.

12 years agoupdate release notes
Wim Taymans [Thu, 29 Sep 2011 16:06:25 +0000 (18:06 +0200)]
update release notes

Change the mail addresses to the freedesktop ones

12 years agoback to development
Wim Taymans [Thu, 29 Sep 2011 15:04:57 +0000 (17:04 +0200)]
back to development

12 years agoRELEASE 0.11.1 RELEASE-0.11.1
Wim Taymans [Thu, 29 Sep 2011 14:50:21 +0000 (16:50 +0200)]
RELEASE 0.11.1

12 years agomemory: fix memory alignment
Wim Taymans [Wed, 28 Sep 2011 16:46:09 +0000 (18:46 +0200)]
memory: fix memory alignment

Fix compilation when POSIX_MEMALIGN is not set.
Debug the configured alignment.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=660300

12 years agopad: improve debug
Wim Taymans [Wed, 28 Sep 2011 16:44:12 +0000 (18:44 +0200)]
pad: improve debug

12 years agotransform: fix after merge
Wim Taymans [Wed, 28 Sep 2011 09:28:25 +0000 (11:28 +0200)]
transform: fix after merge

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Wed, 28 Sep 2011 09:24:42 +0000 (11:24 +0200)]
Merge branch 'master' into 0.11

12 years agodocs: fix some more docs
Wim Taymans [Wed, 28 Sep 2011 09:16:33 +0000 (11:16 +0200)]
docs: fix some more docs

12 years agobasetransform: send delayed events earlier
Vincent Penquerc'h [Mon, 26 Sep 2011 18:52:13 +0000 (19:52 +0100)]
basetransform: send delayed events earlier

Some elements (such as videorate) might push buffers early,
for instance in in transform_ip. We want events (and in particular
any NEWSEGMENT event) to be pushed before that.

This fixes transmageddon wedging on converting a file starting
with a non zero offset to Ogg.

https://bugzilla.gnome.org/show_bug.cgi?id=660165

12 years agodocs: fix docs
Wim Taymans [Mon, 26 Sep 2011 18:47:35 +0000 (20:47 +0200)]
docs: fix docs

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Mon, 26 Sep 2011 17:25:22 +0000 (19:25 +0200)]
Merge branch 'master' into 0.11

12 years agosegment: improve API docs a little
Wim Taymans [Mon, 26 Sep 2011 17:24:19 +0000 (19:24 +0200)]
segment: improve API docs a little

12 years agogst: Fix compiler warnings on 64 bit mingw-w64
Raimo Järvi [Sun, 25 Sep 2011 21:30:47 +0000 (00:30 +0300)]
gst: Fix compiler warnings on 64 bit mingw-w64

Fixes bug #660083.

12 years agoexamples: fix bogus g_object_unref in helloworld example
Tim-Philipp Müller [Sun, 25 Sep 2011 15:10:53 +0000 (16:10 +0100)]
examples: fix bogus g_object_unref in helloworld example

GMainLoop is not a GObject.

https://bugzilla.gnome.org/show_bug.cgi?id=424143

12 years agoMerge branch 'master' into 0.11
Edward Hervey [Fri, 23 Sep 2011 11:09:25 +0000 (13:09 +0200)]
Merge branch 'master' into 0.11

Conflicts:
gst/gstcaps.c
gst/gstpad.c
libs/gst/base/gstbasesink.c
libs/gst/base/gstbasesink.h
libs/gst/base/gstbasetransform.c

12 years agoUpdate common to 0.11 branch
Edward Hervey [Wed, 21 Sep 2011 11:43:48 +0000 (13:43 +0200)]
Update common to 0.11 branch

12 years agobasetransform: delay serialized events when src caps are not set yet
Vincent Penquerc'h [Tue, 20 Sep 2011 12:04:06 +0000 (13:04 +0100)]
basetransform: delay serialized events when src caps are not set yet

https://bugzilla.gnome.org/show_bug.cgi?id=659571

12 years agopad: Set caps on pad before checking if the pad is linked
Stas Sergeev [Tue, 13 Sep 2011 13:04:31 +0000 (17:04 +0400)]
pad: Set caps on pad before checking if the pad is linked

This allows the setcaps handler and notify::caps to link
the pad downstream and doesn't require hacks to always
provide a peer to the pad, like in decodebin2.

12 years agocaps: use g_value_take_string() and gst_value_get_caps() instead of accessing interna...
Fabrizio (Misto) Milo [Thu, 15 Sep 2011 18:49:43 +0000 (11:49 -0700)]
caps: use g_value_take_string() and gst_value_get_caps() instead of accessing internal fields

12 years agopad: add more debug logging for other chain function code path as well
Tim-Philipp Müller [Fri, 16 Sep 2011 12:38:41 +0000 (13:38 +0100)]
pad: add more debug logging for other chain function code path as well

12 years agopad: fix up printf format in debug message
Tim-Philipp Müller [Fri, 16 Sep 2011 12:13:30 +0000 (13:13 +0100)]
pad: fix up printf format in debug message

Which I messed up.

12 years agopad: make some debug traces more useful
Vincent Penquerc'h [Thu, 15 Sep 2011 12:20:15 +0000 (13:20 +0100)]
pad: make some debug traces more useful

https://bugzilla.gnome.org/show_bug.cgi?id=659139

12 years agoscripts: remove gstcvstest.sh
Tim-Philipp Müller [Wed, 14 Sep 2011 21:54:18 +0000 (22:54 +0100)]
scripts: remove gstcvstest.sh

12 years agolfocontrolsource: fix clang compiler warning
Tim-Philipp Müller [Tue, 13 Sep 2011 22:04:09 +0000 (23:04 +0100)]
lfocontrolsource: fix clang compiler warning

Cast enum to int before checking for negative values, which are
impossible according to the enum list.

gstlfocontrolsource.c:652:45: error: comparison of unsigned enum expression < 0
      is always false [-Werror,-Wtautological-compare]
  if (waveform >= num_waveforms || waveform < 0) {
                                   ~~~~~~~~ ^ ~

https://bugzilla.gnome.org/show_bug.cgi?id=653137

12 years agotests: make sure filesrc returns escaped URIs even if the input was unescaped
Tim-Philipp Müller [Tue, 13 Sep 2011 20:58:21 +0000 (21:58 +0100)]
tests: make sure filesrc returns escaped URIs even if the input was unescaped

https://bugzilla.gnome.org/show_bug.cgi?id=654673

12 years agocaps: move log messages for caps creation/freeing into TRACE category
Tim-Philipp Müller [Sat, 10 Sep 2011 17:15:49 +0000 (18:15 +0100)]
caps: move log messages for caps creation/freeing into TRACE category

Reduce SPAM for GST_CAPS:5.

12 years agopad: Only do the subset check in gst_pad_accept_caps() if the pad claims to accept...
Sebastian Dröge [Fri, 9 Sep 2011 10:56:20 +0000 (12:56 +0200)]
pad: Only do the subset check in gst_pad_accept_caps() if the pad claims to accept the caps

12 years agobasesink: make it easy to override the pad query
Nicolas Dufresne [Wed, 7 Sep 2011 21:21:55 +0000 (17:21 -0400)]
basesink: make it easy to override the pad query

Add a vmethod to handle the pad query.
Install a default handler for the pad query.
Use the new query function in filesink

12 years agoRevert "Revert "basetransform: Use check for subsets and not non-empty intersection...
Sebastian Dröge [Thu, 8 Sep 2011 12:39:30 +0000 (14:39 +0200)]
Revert "Revert "basetransform: Use check for subsets and not non-empty intersection to check if caps are compatible""

This reverts commit 0bc6d49c950210bf422615fb8dc98c5adcd5e456.

Conflicts:

libs/gst/base/gstbasetransform.c

12 years agoRevert "Revert "pad: Check for subsets, not non-empty intersections to check if caps...
Sebastian Dröge [Thu, 8 Sep 2011 12:31:52 +0000 (14:31 +0200)]
Revert "Revert "pad: Check for subsets, not non-empty intersections to check if caps are compatible""

This reverts commit 2bfada5581e35a2d37188f48a2c7442644f10bb3.

Conflicts:

gst/gstpad.c

For 0.11 we want to enforce that only subsets of the pad
caps are allowed. This breaks backward compatibility for
some elements, which is why we only print a warning in
0.10.

12 years agoMerge branch 'master' into 0.11
Sebastian Dröge [Thu, 8 Sep 2011 12:30:07 +0000 (14:30 +0200)]
Merge branch 'master' into 0.11

Conflicts:
gst/gstpad.c

12 years agoRevert "pad: Use gst_pad_accept_caps() instead of manually checking when configuring...
Sebastian Dröge [Thu, 8 Sep 2011 12:29:00 +0000 (14:29 +0200)]
Revert "pad: Use gst_pad_accept_caps() instead of manually checking when configuring a sinkpad"

This reverts commit d3cad28da936b037d877dc70c02286b81b680284.

It causes performance problems because acceptcaps() propagates downstream.