rtspsrc: Do not try send dropped get/set parameter
authorJochen Henneberg <jh@henneberg-systemdesign.com>
Mon, 5 Jun 2023 04:50:55 +0000 (06:50 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Jun 2023 05:22:59 +0000 (07:22 +0200)
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>

subprojects/gst-plugins-good/gst/rtsp/gstrtspsrc.c

index 58c7a6a20bfd6821655f976d8f89cb86b3302bf1..354a9218b95b06301aac0e91aa0584c40702b5fa 100644 (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) {