[MOVED FROM GOOD] sys/directdraw/gstdirectdrawsink.c

Original commit message from CVS:
* sys/directdraw/gstdirectdrawsink.c
(gst_directdraw_sink_buffer_alloc):
Clear the flags on recycled buffers from buffer_alloc.
Partially fixes #520885.
The right fix this time.
This commit is contained in:
Ole André Vadla Ravnås 2008-05-07 14:43:39 +00:00 committed by Jan Schmidt
parent 1aa90c3ce1
commit 44a5658faa

View file

@ -705,6 +705,7 @@ gst_directdraw_sink_buffer_alloc (GstBaseSink * bsink, guint64 offset,
/* Now we should have a surface, set appropriate caps on it */
if (surface) {
GST_BUFFER_FLAGS (GST_BUFFER (surface)) = 0;
gst_buffer_set_caps (GST_BUFFER (surface), buffer_caps);
}