catch and handle gst error message

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

catch and handle gst error message

mmssm
I am running an rtsp server via gst-rtsp. I would like to restart the process if the gst-rtsp is stuck with errors, like "rtspmedia rtsp-media.c:4156:gst_rtsp_media_set_state: media 0x7f6c0701a0 was not prepared" or cannot stream media to clients.

May I know any hints to write a handler for the gst errors? Thanks