GNOME Bugzilla – Bug 630353
[appsrc] Avoid losing buffers' caps
Last modified: 2010-09-23 12:10:37 UTC
Currently appsrc sets its 'caps' property to all buffers it pushes. This makes it erase current buffers caps when its property is NULL. This patch makes it only set the caps if it actually has a caps to set (the property is non-NULL).
Created attachment 170848 [details] [review] 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.
looks good to me!
Pushed. commit 24b523e129d55c8ace7afdfffa341909431082e9 Author: Thiago Santos <thiago.sousa.santos@collabora.co.uk> Date: Wed Sep 22 14:10:18 2010 -0300 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