plugins/elements/: Fix queue negotiation. If acceptcaps unconditionally returns TRUE...
authorWim Taymans <wim.taymans@gmail.com>
Mon, 15 Oct 2007 11:36:37 +0000 (11:36 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Mon, 15 Oct 2007 11:36:37 +0000 (11:36 +0000)
commit5363f86bb12d604013baeef01e3eb55aa9c90e2c
tree64e5299d3a22e065a98ae1e5473c44de55c7a67c
parent68ba3b43848b407960e29d42b69e7d9fff8a7536
plugins/elements/: Fix queue negotiation. If acceptcaps unconditionally returns TRUE, upstream is tricked into thinki...

Original commit message from CVS:
* plugins/elements/gstmultiqueue.c: (gst_single_queue_push_one),
(gst_single_queue_new):
* plugins/elements/gstqueue.c: (gst_queue_init),
(gst_queue_push_one):
Fix queue negotiation. If acceptcaps unconditionally returns TRUE,
upstream is tricked into thinking it can suggest a format downstream
while downstream does not support that format. The real problem is that
core calls acceptcaps when pushing a buffer with new caps, for which we
do a little workaround by setting the caps on the srcpad ourselves
before pushing the buffer (until this is figured out). Fixes #486758.
ChangeLog
plugins/elements/gstmultiqueue.c
plugins/elements/gstqueue.c