rtsp: properly fix the HTTP manual mode
When we're not parsing HTTP, return EPARSE when we get an HTTP message.
This commit is contained in:
parent
794e03640d
commit
8d2f20d1cb
@ -3062,11 +3062,13 @@ gst_rtsp_source_dispatch (GSource * source, GSourceFunc callback G_GNUC_UNUSED,
|
|||||||
watch->message.type_data.request.method = GST_RTSP_INVALID;
|
watch->message.type_data.request.method = GST_RTSP_INVALID;
|
||||||
if (watch->message.type_data.request.version != GST_RTSP_VERSION_1_0)
|
if (watch->message.type_data.request.version != GST_RTSP_VERSION_1_0)
|
||||||
watch->message.type_data.request.version = GST_RTSP_VERSION_INVALID;
|
watch->message.type_data.request.version = GST_RTSP_VERSION_INVALID;
|
||||||
|
res = GST_RTSP_EPARSE;
|
||||||
} else if (watch->message.type == GST_RTSP_MESSAGE_HTTP_RESPONSE) {
|
} else if (watch->message.type == GST_RTSP_MESSAGE_HTTP_RESPONSE) {
|
||||||
watch->message.type = GST_RTSP_MESSAGE_RESPONSE;
|
watch->message.type = GST_RTSP_MESSAGE_RESPONSE;
|
||||||
if (watch->message.type_data.response.version != GST_RTSP_VERSION_1_0)
|
if (watch->message.type_data.response.version != GST_RTSP_VERSION_1_0)
|
||||||
watch->message.type_data.response.version =
|
watch->message.type_data.response.version =
|
||||||
GST_RTSP_VERSION_INVALID;
|
GST_RTSP_VERSION_INVALID;
|
||||||
|
res = GST_RTSP_EPARSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user