To display the RTSP video stream (MPEG4), the existing WinForms application uses the libvlc library, which is part of the popular VLC . However, in the code of the library itself there are defects that make it difficult to use this approach in 24/7 mode. These defects in particular include: resource leaks, the accidental creation of parasitic windows and deadlocks.
As an alternative, the gstreamer library was considered, but as I understood, it is problematic to use it as part of a WinForms application.
There is also the option of using DirectDraw, but it is not yet clear how things will go with getting the stream via RTSP.
It requires advice: how (with the help of some technologies) is it more optimal, from the point of view of stability of work in the first place, to implement the functionality of displaying an RTSP video stream in a WinForms application? The complexity of implementation is secondary, but, of course, I would not like to invent a scooter, but to use ready-made high-level libraries.