GNOME Bugzilla – Bug 680767
[appsrc] rework as GstBuffer's don't have caps anymore
Last modified: 2012-08-02 22:03:07 UTC
appsrc sometimes rely on the buffer's caps being set on the pads (from the 0.10 times). Now GstBuffers don't have the caps and some rewriting should be done to make sure that the caps set at the property is negotiated with downstream elements.
Created attachment 219810 [details] [review] Trivial solution Store a flag to indicate when appsrc should set a new caps before pushing buffers. This solves my problems with camerabin tests. Some more code might be improved.
Review of attachment 219810 [details] [review]: Looks good except ::: gst-libs/gst/app/gstappsrc.c @@ +938,1 @@ GST_OBJECT_UNLOCK (appsrc); Here you're using the object lock instead of priv->mutex to protect the new_caps field
commit 6d4f94f45e4412528112aea4c066b5bd747a8c61 pushed