I use libvlc to display UDP stream trhough libvlc_video_set_callbacks.
Task of getting size of frame is solved by creating dummy instance of player to render in 10x10 buffer,
I also use libvlc_event_manager_t to call libvlc_video_get_size from every event
when proper proper size is returned i stop and destroy that dummy instance and start new one with native frame size.
Platform is Windows, language is Delphi
Everything works ok, but in 1 case from 20 or 30 it hangs on libvlc_media_player_stop call on that first dummy instance.
I mean I call libvlc_media_player_stop and it never returns .