From 89ece711dd0b13b8408981ffdda2f0e88b602d35 Mon Sep 17 00:00:00 2001 From: Jochen Henneberg Date: Mon, 5 Jun 2023 06:50:55 +0200 Subject: [PATCH] rtspsrc: Do not try send dropped get/set parameter If the set_get_param_q has been emptied we have to reset the cached pending command to CMD_LOOP as we will not have the request parameters anymore. Part-of: --- subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c index 58c7a6a..354a921 100644 --- a/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c +++ b/subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c @@ -9346,6 +9346,8 @@ gst_rtspsrc_thread (GstRTSPSrc * src) || cmd == CMD_SET_PARAMETER) { if (g_queue_is_empty (&src->set_get_param_q)) { src->pending_cmd = CMD_LOOP; + if (cmd == CMD_GET_PARAMETER || cmd == CMD_SET_PARAMETER) + cmd = CMD_LOOP; } else { ParameterRequest *next_req; if (cmd == CMD_GET_PARAMETER || cmd == CMD_SET_PARAMETER) { -- 2.7.4