dec: Fixes
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 7 Apr 2011 10:02:57 +0000 (12:02 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 7 Apr 2011 10:02:57 +0000 (12:02 +0200)
commit450a4fdb5187401ed4a6f037487b90cc98207174
tree548030de0a03471ded8c1efdd1bab760ade8ce38
parent8095b31f9c6b8465d64a37bfd8b2ff65dc4bcd95
dec: Fixes

Set caps on buffers right after we allocate them to avoid refcounting problems
and having to make the buffer metadata writable for no good reason.
Don't unmap the memory with a 0 size or we would modify the memory size when
it's not needed.
ext/ffmpeg/gstffmpegdec.c