diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-02-20 09:50:15 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-02-20 09:52:16 +0100 |
commit | 0ffd5e703a2a4af5a0fd033d757db4f2cd47aef9 (patch) | |
tree | f393b16b70a3eec622e8a79db4879241294773b5 | |
parent | d8a33f094c8a5bdf5e403e4be02076312cbd7f64 (diff) |
Don't parse headers for data messages
Don't try to parse the headers on a data message because they don't have
headers.
-rw-r--r-- | gst-libs/gst/rtsp/gstrtspconnection.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index eaf059dcb..03ca5ccdf 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -1173,6 +1173,12 @@ build_next (GstRTSPBuilder * builder, GstRTSPMessage * message, { 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 */ if (gst_rtsp_message_get_header (message, GST_RTSP_HDR_SESSION, &session_id, 0) == GST_RTSP_OK) { |