[MOVED FROM GOOD] 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)
committerJan Schmidt <thaytan@noraisin.net>
Sat, 16 May 2009 00:29:18 +0000 (01:29 +0100)
commite2886ac7c9b90ecf6d5e87c0e78451e98a8ea636
tree716006d2c3c5f73b71e6147cd2bbd83a582a6642
parent44a5658faaa9e32e260dfb4d6d85fe8e0982fd69
[MOVED FROM GOOD] 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.
sys/directdraw/gstdirectdrawsink.c