1
0
Fork 0
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:
David Herrmann 2014-05-08 15:23:17 +02:00
parent 4ea4bb7d82
commit f275a60401

View file

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