I have a patch for DirectFB imageprovider. The reason for this patch is that PeekData assumes Filebased access. However we have ImageProviders written that use /dev/ entries. This means that PeekData might fail. However when we load our ImageProvider it sees the filename as /dev/image for example and reports it as Probed succesfully.
The patch is: --- directfb/src/media/idirectfbimageprovider.c +++ directfb.new/src/media/idirectfbimageprovider.c @@ -130,9 +130,7 @@ return ret; /* Read the first 32 bytes. */ - ret = buffer->PeekData( buffer, 32, 0, ctx.header, NULL ); - if (ret) - return ret; + buffer->PeekData( buffer, 32, 0, ctx.header, NULL ); /* Find a suitable implementation. */ ret = DirectGetInterface( &funcs, "IDirectFBImageProvider", NULL, DirectProbeInterface, &ctx ); This is the same as idirectfbvideoprovider.c. Cheers Dan Laird -- View this message in context: http://www.nabble.com/DirectFBImageProvider-Issue-%28PeekData-fails-for--dev-entries%29-tp14663035p14663035.html Sent from the DirectFB Dev mailing list archive at Nabble.com. _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev