mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
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:
parent
0e62bb2ba6
commit
4790a8d2be
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue