dshow: protect access to curbufsize