appsrc: Do not override buffer caps if appsrc caps is null
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Wed, 22 Sep 2010 17:10:18 +0000 (14:10 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 23 Sep 2010 11:23:47 +0000 (08:23 -0300)
commit24b523e129d55c8ace7afdfffa341909431082e9
treea3cb7fba411cc0f9bb3c5b3bbb6c8f26b0f31554
parent91f89f490cf9bab23f7eaab21273b4914cbf662d
appsrc: Do not override buffer caps if appsrc caps is null

Make appsrc not set caps on buffers when its own caps is NULL.

This avoids calling make_metadata_writable on all buffers and
prevents losing buffer caps in case we are not replacing it
with something meaningful.

https://bugzilla.gnome.org/show_bug.cgi?id=630353
gst-libs/gst/app/gstappsrc.c
tests/check/Makefile.am
tests/check/elements/appsrc.c [new file with mode: 0644]