caps: No need to require writable caps for _append/_merge second caps
authorThiago Santos <thiago.sousa.santos@collabora.com>
Fri, 21 Oct 2011 13:23:04 +0000 (10:23 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Fri, 21 Oct 2011 13:23:04 +0000 (10:23 -0300)
commit27ce89812a9185b8a97a6f98eea53022dbdb6e4a
treeffb5b2a6309f8a5b8f19276b1e98b82d33fd5690
parentb046ba6e3a5ac5af8941d7c4d67614f6fe19b68d
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.
gst/gstcaps.c