platform/upstream/gstreamer.git
12 years agoMerge branch 'master' into 0.11
Wim Taymans [Fri, 28 Oct 2011 14:27:43 +0000 (16:27 +0200)]
Merge branch 'master' into 0.11

Conflicts:
libs/gst/base/gstbasetransform.c

12 years agotests: fix segment check
Wim Taymans [Fri, 28 Oct 2011 14:08:37 +0000 (16:08 +0200)]
tests: fix segment check

12 years agosegment: remove GST_SEEK_TYPE_CUR
Wim Taymans [Fri, 28 Oct 2011 13:52:58 +0000 (15:52 +0200)]
segment: remove GST_SEEK_TYPE_CUR

12 years agobuffer: improve docs
Wim Taymans [Fri, 28 Oct 2011 13:52:41 +0000 (15:52 +0200)]
buffer: improve docs

12 years agobytewriter: Add padding
Sebastian Dröge [Fri, 28 Oct 2011 11:02:26 +0000 (13:02 +0200)]
bytewriter: Add padding

12 years agobitreader: Add padding
Sebastian Dröge [Fri, 28 Oct 2011 11:02:19 +0000 (13:02 +0200)]
bitreader: Add padding

12 years agobytereader: Add padding
Sebastian Dröge [Fri, 28 Oct 2011 11:02:10 +0000 (13:02 +0200)]
bytereader: Add padding

12 years agoporting: update
Wim Taymans [Fri, 28 Oct 2011 10:31:03 +0000 (12:31 +0200)]
porting: update

12 years agodocs: update
Wim Taymans [Fri, 28 Oct 2011 10:28:46 +0000 (12:28 +0200)]
docs: update

12 years agodefs: update for new api
Wim Taymans [Fri, 28 Oct 2011 10:27:43 +0000 (12:27 +0200)]
defs: update for new api

12 years agocheck: also debug the DTS
Wim Taymans [Fri, 28 Oct 2011 10:17:58 +0000 (12:17 +0200)]
check: also debug the DTS

12 years agoadapter: use pts/dts on buffers
Wim Taymans [Fri, 28 Oct 2011 10:16:21 +0000 (12:16 +0200)]
adapter: use pts/dts on buffers

12 years agocompat: add timestamp compat defines
Wim Taymans [Fri, 28 Oct 2011 10:24:02 +0000 (12:24 +0200)]
compat: add timestamp compat defines

12 years agobuffer: add pts/dts to buffers
Wim Taymans [Fri, 28 Oct 2011 10:15:44 +0000 (12:15 +0200)]
buffer: add pts/dts to buffers

12 years agobasetransform: Also fush the cache when changing the upstream caps suggestion
Sjoerd Simons [Fri, 28 Oct 2011 09:53:32 +0000 (11:53 +0200)]
basetransform: Also fush the cache when changing the upstream caps suggestion

12 years agobasetransform: Add debug output when returning a cached transform
Sjoerd Simons [Fri, 28 Oct 2011 09:50:23 +0000 (11:50 +0200)]
basetransform: Add debug output when returning a cached transform

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Fri, 28 Oct 2011 09:33:44 +0000 (11:33 +0200)]
Merge branch 'master' into 0.11

12 years agocoolectpads2: port to 0.11
Wim Taymans [Fri, 28 Oct 2011 09:30:57 +0000 (11:30 +0200)]
coolectpads2: port to 0.11

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Fri, 28 Oct 2011 09:13:55 +0000 (11:13 +0200)]
Merge branch 'master' into 0.11

12 years agocollectpads2: Fix refcount handling if a buffer was dropped due to clipping
Sebastian Dröge [Fri, 28 Oct 2011 08:54:19 +0000 (10:54 +0200)]
collectpads2: Fix refcount handling if a buffer was dropped due to clipping

12 years agocollectpads2: Merge the clip and prepare_buffer function into one
Sebastian Dröge [Fri, 28 Oct 2011 08:37:21 +0000 (10:37 +0200)]
collectpads2: Merge the clip and prepare_buffer function into one

12 years agocollectpads2: Merge clipping API from old collectpads
Sebastian Dröge [Fri, 28 Oct 2011 08:17:06 +0000 (10:17 +0200)]
collectpads2: Merge clipping API from old collectpads

12 years agobasesink: make default query function name show up in gst-inspect
Tim-Philipp Müller [Fri, 28 Oct 2011 08:19:29 +0000 (09:19 +0100)]
basesink: make default query function name show up in gst-inspect

12 years agocollectpads2: avoid hanging in case of sparse newsegment events
Mark Nauwelaerts [Tue, 27 Sep 2011 13:48:52 +0000 (15:48 +0200)]
collectpads2: avoid hanging in case of sparse newsegment events

... in the extent that a non-waiting pad (so indicated by newsegment)
turns out to provide the best buffer, which is then forced to waiting
for book-keeping purposes, but that should only be temporary.

See bug #415754.

12 years agocollectpads2: Use G_DEFINE_TYPE instead of GST_BOILERPLATE
Sebastian Dröge [Fri, 28 Oct 2011 07:38:35 +0000 (09:38 +0200)]
collectpads2: Use G_DEFINE_TYPE instead of GST_BOILERPLATE

12 years agocollectpads2: Add to the documentation
Sebastian Dröge [Fri, 28 Oct 2011 07:35:50 +0000 (09:35 +0200)]
collectpads2: Add to the documentation

12 years agowin32: Add new collectpads2 API
Sebastian Dröge [Fri, 28 Oct 2011 07:26:11 +0000 (09:26 +0200)]
win32: Add new collectpads2 API

12 years agobase: Add collectpads2
Sebastian Dröge [Fri, 28 Oct 2011 07:18:55 +0000 (09:18 +0200)]
base: Add collectpads2

This handles muxing of sparse/subtitle streams and has
lots of cleanup. Still missing is special support for
live streams but this can be added later without breaking
API/ABI.

Based on the version from the videomixer plugin.
https://bugzilla.gnome.org/show_bug.cgi?id=415754

12 years agotests: fix compilation
Wim Taymans [Thu, 27 Oct 2011 15:09:51 +0000 (17:09 +0200)]
tests: fix compilation

12 years agodefs: update
Wim Taymans [Thu, 27 Oct 2011 15:09:34 +0000 (17:09 +0200)]
defs: update

12 years agocaps: add empty_simple variants
Wim Taymans [Thu, 27 Oct 2011 15:09:04 +0000 (17:09 +0200)]
caps: add empty_simple variants

12 years agotests: fix compilation
Wim Taymans [Thu, 27 Oct 2011 14:51:16 +0000 (16:51 +0200)]
tests: fix compilation

12 years agocaps: use G_GNUC_NULL_TERMINATED for gst_caps_new_simple() and gst_caps_new_full()
Johan Boulé [Thu, 27 Oct 2011 13:56:24 +0000 (14:56 +0100)]
caps: use G_GNUC_NULL_TERMINATED for gst_caps_new_simple() and gst_caps_new_full()

If you get warnings, use gst_caps_new_empty().

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

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

Conflicts:
libs/gst/base/gstbasetransform.c

12 years agostructure: use G_GNUC_NULL_TERMINATED for gst_structure_new()
Tim-Philipp Müller [Thu, 27 Oct 2011 12:25:08 +0000 (13:25 +0100)]
structure: use G_GNUC_NULL_TERMINATED for gst_structure_new()

If you get a warning, use gst_structure_empty_new().

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

12 years agobasetransform: Fix refcount leak
Jan Schmidt [Thu, 27 Oct 2011 12:08:14 +0000 (23:08 +1100)]
basetransform: Fix refcount leak

Don't leak peercaps and a ref to the basetransform when returning
the cached caps.

12 years agocontroller: fix wrong order of calls in the docs.
Stefan Sauer [Thu, 27 Oct 2011 08:38:10 +0000 (10:38 +0200)]
controller: fix wrong order of calls in the docs.

12 years agoevent: clarify docs for step event
Stefan Sauer [Wed, 26 Oct 2011 10:23:07 +0000 (12:23 +0200)]
event: clarify docs for step event

12 years agoregistry: add support for GST_REGISTRY_REUSE_PLUGIN_SCANNER=no
Tim-Philipp Müller [Tue, 18 Oct 2011 22:19:47 +0000 (23:19 +0100)]
registry: add support for GST_REGISTRY_REUSE_PLUGIN_SCANNER=no

This will make sure we spawn a new plugin scanner helper for each plugin
to be introspected, which helps with making sure we don't load too many
shared objects (libs, plugins) at the same time on systems where there
is a hard limit like on Android.

A better version might re-use the scanner for up to N times, though
it's not clear whether that would actually improve things dramatically.

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

12 years agocaps: No need to require writable caps for _append/_merge second caps
Thiago Santos [Fri, 21 Oct 2011 13:23:04 +0000 (10:23 -0300)]
caps: No need to require writable caps for _append/_merge second caps

The second caps ownership is transfered, no need to require it to
be writable from the caller function. Instead, _append and _merge
make it writable on their own.

Discovered because of an assertion on encoding-profile.c in
_get_input_caps using _merge but not passing writable caps.

12 years agointerfaces: clean up the use of iface and class/klass
Stefan Sauer [Fri, 21 Oct 2011 12:20:40 +0000 (14:20 +0200)]
interfaces: clean up the use of iface and class/klass

12 years agodocs: spelling and formatting fixes
Stefan Sauer [Fri, 21 Oct 2011 09:15:11 +0000 (11:15 +0200)]
docs: spelling and formatting fixes

12 years agoMerging origin/master
Edward Hervey [Fri, 21 Oct 2011 08:52:46 +0000 (10:52 +0200)]
Merging origin/master

Conflicts:
gst/gstbin.c
gst/gstbus.c
gst/gstdebugutils.c
gst/gstpad.c
libs/gst/base/gstbaseparse.c
libs/gst/base/gstbasesrc.c

12 years agobaseparse: Fix documentation, it's pre_push_frame and not pre_push_buffer
Sebastian Dröge [Thu, 20 Oct 2011 14:59:01 +0000 (16:59 +0200)]
baseparse: Fix documentation, it's pre_push_frame and not pre_push_buffer

12 years agobasetransform: cache transformed caps where appropriate
Vincent Penquerc'h [Thu, 20 Oct 2011 13:02:44 +0000 (14:02 +0100)]
basetransform: cache transformed caps where appropriate

Speeds up negotiation a fair bit on a contrived pipeline
with a dozen colorspace conversions.

Hopefully clears out the cache every time it ought to.

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

12 years agoFix broken android building due to name change in 01d87250a845e55d6
Reynaldo H. Verdejo Pinochet [Thu, 20 Oct 2011 13:45:30 +0000 (10:45 -0300)]
Fix broken android building due to name change in 01d87250a845e55d6

12 years agobasebarse: Add detect vfunc to allow subclasses to do format detection before anythin...
Sebastian Dröge [Thu, 20 Oct 2011 06:31:18 +0000 (08:31 +0200)]
basebarse: Add detect vfunc to allow subclasses to do format detection before anything else

API: GstBaseParseClass::detect()

This is called with the first buffers until the subclass has finished detection
and only afterwards the original buffers are handled as before. The vfunc allows
detection of the stream format without breaking the upstream framing.

12 years agopad: not only describe conditions in the docs, also check them in the code
Stefan Sauer [Thu, 20 Oct 2011 06:57:57 +0000 (08:57 +0200)]
pad: not only describe conditions in the docs, also check them in the code

When blocking pads, check if the pad is in the rigt direction. Log some info
for the developer and return FALSE, instead of just locking up.

12 years agoRevert gst_plugin_feature_get_name to const string return
René Stadler [Wed, 19 Oct 2011 21:07:46 +0000 (23:07 +0200)]
Revert gst_plugin_feature_get_name to const string return

Returning a newly allocated string makes no sense. It's unexpected for a
getter, and also this behaves differently in 0.10, so it would make future
merges harder.

Except for these two places here in core which were updated for the new
semantic, the return value is getting leaked all over the place.

12 years agogstobject: Add (skip) annotation to gst_object_ref_sink
Edward Hervey [Wed, 19 Oct 2011 10:12:36 +0000 (12:12 +0200)]
gstobject: Add (skip) annotation to gst_object_ref_sink

12 years agogstiterator: Add skip annotation for creating GstIterator
Edward Hervey [Wed, 19 Oct 2011 09:59:29 +0000 (11:59 +0200)]
gstiterator: Add skip annotation for creating GstIterator

Not really useful for bindings

12 years agointrospection: Skip gst_poll apis
Johan Dahlin [Mon, 29 Aug 2011 16:56:19 +0000 (13:56 -0300)]
introspection: Skip gst_poll apis

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

12 years agointrospection: Skip GType and GValue transform apis
Johan Dahlin [Mon, 29 Aug 2011 16:55:13 +0000 (13:55 -0300)]
introspection: Skip GType and GValue transform apis

These do not make sense to expose to language bindings

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

12 years agointrospection: Skip gst_init_get_option_group
Johan Dahlin [Mon, 29 Aug 2011 16:54:21 +0000 (13:54 -0300)]
introspection: Skip gst_init_get_option_group

It uses GOptionGroup which is not wrappable

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

12 years agointrospection: Add missing annotations
Johan Dahlin [Mon, 29 Aug 2011 16:53:39 +0000 (13:53 -0300)]
introspection: Add missing annotations

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

12 years agointrospection: Rename gst_bus_add_watch_full to gst_bus_add_watch
Johan Dahlin [Mon, 29 Aug 2011 16:52:26 +0000 (13:52 -0300)]
introspection: Rename gst_bus_add_watch_full to gst_bus_add_watch

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

12 years agoSync documentation arguments
Johan Dahlin [Mon, 29 Aug 2011 16:50:40 +0000 (13:50 -0300)]
Sync documentation arguments

The introspection scanner warns if the header and the source
uses mismatching parameter names.

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

12 years agoAdd gst_structure_get_type
Johan Dahlin [Mon, 29 Aug 2011 16:50:02 +0000 (13:50 -0300)]
Add gst_structure_get_type

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

12 years agomessage: protect against null message sources
Thiago Santos [Tue, 18 Oct 2011 22:21:58 +0000 (19:21 -0300)]
message: protect against null message sources

Message sources can be null, check if it is before trying to
access its name.

12 years agobaseparse: add since doc to new getcaps function
Thiago Santos [Tue, 18 Oct 2011 11:48:37 +0000 (08:48 -0300)]
baseparse: add since doc to new getcaps function

12 years agologging: more logging and prefer human readable details over memory locations
Stefan Sauer [Tue, 18 Oct 2011 12:08:19 +0000 (14:08 +0200)]
logging: more logging and prefer human readable details over memory locations

12 years agodebugutils: improve display of ghost- and proxypads
Stefan Sauer [Tue, 18 Oct 2011 12:05:37 +0000 (14:05 +0200)]
debugutils: improve display of ghost- and proxypads

Handle virtual links between ghost and proxypads when iterating pads instead of
when linking. Besides using less code this provides a more accurate picture.

12 years agocontroller: Add g-i annotations and remove "Since:" markers
Edward Hervey [Tue, 18 Oct 2011 11:54:52 +0000 (13:54 +0200)]
controller: Add g-i annotations and remove "Since:" markers

12 years agobaseparse: add getcaps function
Thiago Santos [Mon, 17 Oct 2011 17:42:08 +0000 (14:42 -0300)]
baseparse: add getcaps function

Adds a getcaps function to the sink pad to make parsers propagate
downstream caps restrictions to upstream.

The pipeline "audiotestsrc num-buffers=100 ! faac ! aacparse !
"audio/mpeg, version=(int)4, stream-format=(string)adts" ! filesink"
wouldn't work because aacparse wouldn't propagate the adts restriction
upstream to faac.

This patch adds a default getcaps to the sink pad to simply proxy
downstream caps and also adds a 'get_sink_caps' function pointer
to GstBaseParseClass for subclasses that need more refined getcaps.

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

12 years agobasesrc: also update the stream time
Wim Taymans [Tue, 18 Oct 2011 10:39:03 +0000 (12:39 +0200)]
basesrc: also update the stream time

12 years agobaseparse: Fix handling of queued frames
Sebastian Dröge [Tue, 18 Oct 2011 08:58:14 +0000 (10:58 +0200)]
baseparse: Fix handling of queued frames

gst_base_parse_push_frame() already frees the frame, no need to
do it another time again.

12 years agotests: fix padtemplate leak in selector test
René Stadler [Mon, 17 Oct 2011 19:38:56 +0000 (21:38 +0200)]
tests: fix padtemplate leak in selector test

In 0.11, gst_pad_get_pad_template returns a reference.

12 years agopad: fix buffer/event leak when pad is flushing
René Stadler [Mon, 17 Oct 2011 19:37:17 +0000 (21:37 +0200)]
pad: fix buffer/event leak when pad is flushing

Apparently this got lost while refactoring probes.

12 years agobaseparse: remove the memory from the tmpbuf
Wim Taymans [Mon, 17 Oct 2011 15:00:04 +0000 (17:00 +0200)]
baseparse: remove the memory from the tmpbuf

We use a tmpbuf to hold a temporary pointer to the adapter memory. We need to
remove that memory when we no longer need it.

12 years agocaps: fix race condition and memory leak in gst_static_caps_get
René Stadler [Mon, 17 Oct 2011 11:55:35 +0000 (13:55 +0200)]
caps: fix race condition and memory leak in gst_static_caps_get

This was leaking the PtrArray from caps->priv, as set up by the other call to
gst_caps_init. Also, the thread safety issue presented in the comment above was
not taken care of anymore. We now zero the refcount again when publishing the
structure.

Fixes #661629.

12 years agogstcheck: Make ASSERT_MINI_OBJECT_REFCOUNT more useful
Edward Hervey [Mon, 17 Oct 2011 07:28:43 +0000 (09:28 +0200)]
gstcheck: Make ASSERT_MINI_OBJECT_REFCOUNT more useful

knowing which miniobject failed helps us locate it in debug logs

12 years agogstcheck: Make _check_buffer_data a bit more verbose
Edward Hervey [Mon, 17 Oct 2011 07:28:24 +0000 (09:28 +0200)]
gstcheck: Make _check_buffer_data a bit more verbose

12 years agocheck: Don't leak the feature name
Edward Hervey [Mon, 17 Oct 2011 07:27:49 +0000 (09:27 +0200)]
check: Don't leak the feature name

12 years agogstregistry: Don't leak feature name
Edward Hervey [Mon, 17 Oct 2011 07:27:26 +0000 (09:27 +0200)]
gstregistry: Don't leak feature name

12 years agobus: give watch source a name
Tim-Philipp Müller [Sun, 16 Oct 2011 20:12:07 +0000 (21:12 +0100)]
bus: give watch source a name

Give our GSource a meaningful name. Source names can be
used for debugging and profiling, for example with
systemtap or gdb.

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 agoporting: update
Wim Taymans [Sun, 16 Oct 2011 15:42:22 +0000 (17:42 +0200)]
porting: update

12 years agoporting: update
Wim Taymans [Sun, 16 Oct 2011 15:03:27 +0000 (17:03 +0200)]
porting: update

12 years agoporting: update porting list
Wim Taymans [Sun, 16 Oct 2011 15:00:09 +0000 (17:00 +0200)]
porting: update porting list

12 years agofix more parent_class
Wim Taymans [Sun, 16 Oct 2011 12:45:03 +0000 (14:45 +0200)]
fix more parent_class

12 years agoMerge branch 'master' into 0.11
Wim Taymans [Sun, 16 Oct 2011 12:20:33 +0000 (14:20 +0200)]
Merge branch 'master' into 0.11

Conflicts:
gst/gstevent.h

12 years agopadtemplate: clean up parent_class
Wim Taymans [Sun, 16 Oct 2011 12:17:25 +0000 (14:17 +0200)]
padtemplate: clean up parent_class

12 years agopad: clean up parent_class handling
Wim Taymans [Fri, 14 Oct 2011 10:57:38 +0000 (12:57 +0200)]
pad: clean up parent_class handling

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 agobus: fix typo in the docs
Stefan Sauer [Thu, 13 Oct 2011 15:33:06 +0000 (17:33 +0200)]
bus: fix typo in the docs

12 years agodebugutils: show if an element is state-locked
Stefan Sauer [Thu, 13 Oct 2011 14:48:02 +0000 (16:48 +0200)]
debugutils: show if an element is state-locked

12 years agologging: use _OBJECT variants more
Stefan Sauer [Thu, 13 Oct 2011 14:42:10 +0000 (16:42 +0200)]
logging: use _OBJECT variants more

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 agobuffer: Use an inline function instead of a macro for gst_buffer_replace()
Sebastian Dröge [Thu, 13 Oct 2011 08:19:34 +0000 (10:19 +0200)]
buffer: Use an inline function instead of a macro for gst_buffer_replace()

This gives us type checks by the compiler and more useful compiler errors.

12 years agoevent: Use an inline function instead of a macro for gst_event_replace()
Sebastian Dröge [Thu, 13 Oct 2011 08:18:51 +0000 (10:18 +0200)]
event: Use an inline function instead of a macro for gst_event_replace()

This gives us type checks by the compiler and more useful compiler errors.

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.