sys/directdraw/gstdirectdrawsink.c
authorOle André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
Wed, 7 May 2008 14:56:22 +0000 (14:56 +0000)
committerOle André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
Wed, 7 May 2008 14:56:22 +0000 (14:56 +0000)
commitdeab3d26ba41b3c76cf3c73c6ac77f814fb22571
tree48989510a31d0c9b8e488948f9e46943358dacf1
parentc02e043b1f94704c874c96b4318472134a88b6ac
sys/directdraw/gstdirectdrawsink.c

Original commit message from CVS:
* sys/directdraw/gstdirectdrawsink.c
(gst_directdraw_sink_buffer_alloc):
Make it so that gst_directdraw_sink_buffer_alloc uses the right
width/height.
Especially when looking through the pool of buffers, make sure that
the width/height of caps is used instead of the already negotiated
dimensions.
For example if a buffer with different caps is requested, i.e.
higher resolution, the caller would get a buffer with the old
dimensions and thus corrupt the heap.
ChangeLog
sys/directdraw/gstdirectdrawsink.c