Get the caps of the buffer after we made the buffer writable. This did not
cause any problems but it's nicer this way.
GstCaps *caps;
buffer = GST_BUFFER_CAST (data);
- caps = GST_BUFFER_CAPS (buffer);
if (queue->head_needs_discont) {
GstBuffer *subbuffer = gst_buffer_make_metadata_writable (buffer);
queue->head_needs_discont = FALSE;
}
+ caps = GST_BUFFER_CAPS (buffer);
+
GST_QUEUE_MUTEX_UNLOCK (queue);
/* set the right caps on the pad now. We do this before pushing the buffer
* because the pad_push call will check (using acceptcaps) if the buffer can