mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-13 01:41:55 +00:00
rtsp: strip remote-cookie during reply-matching
We need to drop the remote-cookie flag when matching replies. Otherwise, we will never find the local request. Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
parent
4ea4bb7d82
commit
f275a60401
1 changed files with 3 additions and 1 deletions
|
@ -2586,7 +2586,9 @@ static int rtsp_call_reply(struct rtsp *bus, struct rtsp_message *reply)
|
|||
uint64_t *elem;
|
||||
int r;
|
||||
|
||||
if (!shl_htable_lookup_u64(&bus->waiting, reply->cookie, &elem))
|
||||
if (!shl_htable_lookup_u64(&bus->waiting,
|
||||
reply->cookie & ~RTSP_FLAG_REMOTE_COOKIE,
|
||||
&elem))
|
||||
return 0;
|
||||
|
||||
m = rtsp_message_from_htable(elem);
|
||||
|
|
Loading…
Reference in a new issue