Hi,
If I run 08_video_dec_drm/video_dec_drm and display is unplugged, video_dec_drm does not notice that and continues rendering. When display is re-plugged, it is not properly initialized and starts showing corrupted pictures.
What should be the best way to change video_dec_drm or a similar DRM client to terminate on unplug and reinit display on re-plug?
I see this “drm application shall also be able to know the status.” at
but how?
I see elsewhere suggestions to continuously poll for /sys/class/drm/***/status
but that is not perfect. First it not very efficient to open/close file on every frame,
second it is not clear how to associate DRM crtc with one of several /sys/class/drm/xxx/status
Any suggestions?
Thank you
Hi,
The 08 sample does not consider this condition. We will check with our teams to check if there is a way to handle it. See if we can detect the display is unplugged and exit the application gracefully.