The bug ticket seems quite old and said to be hard to fix.
If it cannot be easily fixed, can't it at least generate an async event that can be caught and handled?
Using 2.0.x how can I catch "main input error"?Not currently. And all except the "main input error" are not VLC errors, but errors from underlying libraries.