I was wondering what people thought about adding a
IDirectFB_CreateVideoProviderByName function:
this would have a prototype like:
IDirectFB_CreateVideoProviderByName(
IDirectFB *thiz,
const char* filename,
const char* videoprovidername,
IDirectFBVideoProvider **interface)
The reason for this is that if you have a number of VideoProviders calling
Probe on each in turn can be time consuming and also requires data to be
going through the system.
If you could shortcut this by specifying a name which could be the
VideoProviderName without lib or .so then this would allow a quick way of
saying - I know I am getting AVI data and I know which VideoProvider I need.
The only problem is that CreateVideoProvider uses a common function
DirectGetInterface and this change does not appear to fit easily with the
current implementation.
I am a bit confused by the 'implementation' parameter to the
DirectGetInterface function, is this maybe what i should use to implement
the IDirectFB_CreateVideoProviderByName function?
Any one have any other ideas?
I could extend the DirectGetInterface function and all references to it?
I could have a new function (less reuse)? for use by CreateVideoProvider.
Cheers
Dan
--
View this message in context:
http://www.nabble.com/CreateVideoProvider-by-Name-tf3478829.html#a9708830
Sent from the DirectFB Dev mailing list archive at Nabble.com.
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev