avisubtitle: set caps on srcpad to fix issue with discoverer
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 18 Jan 2011 09:33:06 +0000 (09:33 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 18 Jan 2011 09:33:06 +0000 (09:33 +0000)
commit7d9b7abbd45947d107da19f9e5248d8884cfeb5d
tree88a0257a68d8c1e126024e80f095bd2ec1291227
parente18e25a324c6367210f0210f48afeab7ca38c529
avisubtitle: set caps on srcpad to fix issue with discoverer

Set caps from the start so discoverer doesn't blow up on
seeing no negotiated caps between elements on preroll,
which might happen if no subtitle buffers have been
pushed yet at the time. See file from bug #603308.
gst/avi/gstavisubtitle.c