[vlc-devel] Why is "Open" called twice on a module?
Peter Tap
ptrtap at yahoo.com
Fri Dec 7 23:52:03 CET 2012
Folks,
I have created a video filter module:
vlc_module_begin ()
set_category( CAT_VIDEO )
set_subcategory( SUBCAT_VIDEO_VFILTER )
set_capability( "video filter2", 0 )
set_callbacks( OpenVideo, CloseVideo )
...
The module works as expected. The only problem is that VLC calls OpenVideo and CloseVideo twice, Why does it do so? Is there a way to prevent it? If not, is there a way to distinguish between the two calls.
The first call to OpenVideo/CloseVideo is for a very short duration. It is as if VLC is probing for something.
Thank you in advance for your help.
Regards,
Peter
More information about the vlc-devel
mailing list