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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4799>
This commit is contained in:
Jochen Henneberg 2023-06-05 06:50:55 +02:00 committed by Tim-Philipp Müller
parent 21b18cc905
commit 89ece711dd

View file

@ -9346,6 +9346,8 @@ gst_rtspsrc_thread (GstRTSPSrc * src)
|| cmd == CMD_SET_PARAMETER) { || cmd == CMD_SET_PARAMETER) {
if (g_queue_is_empty (&src->set_get_param_q)) { if (g_queue_is_empty (&src->set_get_param_q)) {
src->pending_cmd = CMD_LOOP; src->pending_cmd = CMD_LOOP;
if (cmd == CMD_GET_PARAMETER || cmd == CMD_SET_PARAMETER)
cmd = CMD_LOOP;
} else { } else {
ParameterRequest *next_req; ParameterRequest *next_req;
if (cmd == CMD_GET_PARAMETER || cmd == CMD_SET_PARAMETER) { if (cmd == CMD_GET_PARAMETER || cmd == CMD_SET_PARAMETER) {