vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / media / media-add-ons / misc.h
blob621730c675b12f6c8573632f0e448b5c3d39c740
1 // misc.h
2 //
3 // Andrew Bachmann, 2002
4 //
5 // Some functions for general debugging and
6 // working around be media kit bugs.
8 #if !defined(_MISC_H)
9 #define _MISC_H
11 #include <MediaDefs.h>
13 // -------------------------------------------------------- //
14 // lib functions
15 // -------------------------------------------------------- //
17 void print_multistream_format(media_multistream_format * format);
19 void print_media_format(media_format * format);
21 bool multistream_format_is_acceptible(
22 const media_multistream_format & producer_format,
23 const media_multistream_format & consumer_format);
25 bool format_is_acceptible(
26 const media_format & producer_format,
27 const media_format & consumer_format);
29 #endif // _MISC_H