mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
rtsp: Only extract the session ID from RTSP responses.
This commit is contained in:
parent
ddbeb44f14
commit
595f8b6d00
1 changed files with 2 additions and 1 deletions
|
@ -1722,7 +1722,8 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message,
|
|||
}
|
||||
|
||||
/* save session id in the connection for further use */
|
||||
if (gst_rtsp_message_get_header (message, GST_RTSP_HDR_SESSION,
|
||||
if (message->type == GST_RTSP_MESSAGE_RESPONSE &&
|
||||
gst_rtsp_message_get_header (message, GST_RTSP_HDR_SESSION,
|
||||
&session_id, 0) == GST_RTSP_OK) {
|
||||
gint maxlen, i;
|
||||
|
||||
|
|
Loading…
Reference in a new issue