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/4792>
This commit is contained in:
Jochen Henneberg 2023-06-05 06:50:55 +02:00 committed by GStreamer Marge Bot
parent 0e62bb2ba6
commit 4790a8d2be

View file

@ -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) {