how to get HDMI status realtime on nvidia nx?
my project output image by hdmi ,and used the class NvDrmRenderer.
but if there was not link hdmi ,it would print
NvDrmRenderer.cpp:227) Requested connnector is not connected
and it would deadlock on code “delete renderer;”.
it is class NvDrmRenderer bug. if NvDrmRenderer not create ok in function NvDrmRenderer::createDrmRenderer, it will call destructor of class NvDrmRenderer. but some members about of lock and thread are not initialize well in constructor of NvDrmRenderer,in destructor of NvDrmRenderer ,try to distory the members about of lock and thread , it is why it deadlock.
terminate print NvDrmRenderer.cpp:227) Requested connnector is not connected
and my app not fails ,just deadlock in code pthread_cond_broadcast(&enqueue_cond);
I changed your code of class NvDrmRenderer, and it works well now without monitor. NvDrmRenderer.cpp (28.7 KB)