From: Guenter B. <bar...@we...> - 2003-01-31 03:46:29
|
hallo miguel, > actually, we need a solution here, the current scheme is just too ugly: > there is no way to know how much we need to allocate for preview data. > > input_plugin.h says: > > /* > * INPUT_CAP_PREVIEW: > * get_optional_data can handle INPUT_OPTIONAL_DATA_PREVIEW > * so a non-seekable stream plugin can povide the first > * few bytes for demuxers to look at them and decide wheter > * they can handle the stream or not. the preview data must > * be buffered and delivered again through subsequent > * read() calls. > */ > > but there is no definition on what is "few bytes" is. ok, let's just define this is 4k :-) cheers, guenter -- Im Wald da rauscht der Wasserfalle und wenn's nicht mehr rauscht ist's Wasser alle. |