mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
Don't parse headers for data messages
Don't try to parse the headers on a data message because they don't have headers.
This commit is contained in:
parent
d8a33f094c
commit
0ffd5e703a
1 changed files with 6 additions and 0 deletions
|
@ -1173,6 +1173,12 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message,
|
||||||
{
|
{
|
||||||
gchar *session_id;
|
gchar *session_id;
|
||||||
|
|
||||||
|
if (message->type == GST_RTSP_MESSAGE_DATA) {
|
||||||
|
/* data messages don't have headers */
|
||||||
|
res = GST_RTSP_OK;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
/* save session id in the connection for further use */
|
/* save session id in the connection for further use */
|
||||||
if (gst_rtsp_message_get_header (message, GST_RTSP_HDR_SESSION,
|
if (gst_rtsp_message_get_header (message, GST_RTSP_HDR_SESSION,
|
||||||
&session_id, 0) == GST_RTSP_OK) {
|
&session_id, 0) == GST_RTSP_OK) {
|
||||||
|
|
Loading…
Reference in a new issue