summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-08-05 13:47:33 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-08-06 10:52:56 +0200
commit49f24e2044bcc8afc78b99e7f6b7fa0aef3864e5 (patch)
treec759bd15a4abdc13465560110e1a7db20cc2db7d /plugins
parent04f3f096c36a97961d52dd9b2042c810e297215b (diff)
queue: get caps after making writable
Get the caps of the buffer after we made the buffer writable. This did not cause any problems but it's nicer this way.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/elements/gstqueue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/elements/gstqueue.c b/plugins/elements/gstqueue.c
index 175fc6b654..20380afab2 100644
--- a/plugins/elements/gstqueue.c
+++ b/plugins/elements/gstqueue.c
@@ -1021,7 +1021,6 @@ next:
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);
@@ -1035,6 +1034,8 @@ next:
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