From: Wim Taymans Date: Fri, 11 Sep 2009 10:20:10 +0000 (+0200) Subject: rtsp: properly fix the HTTP manual mode X-Git-Tag: 1.19.3~511^2~9194 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d2f20d1cb3d6b0de2a2d2634baad0154a26bcf2;p=platform%2Fupstream%2Fgstreamer.git rtsp: properly fix the HTTP manual mode When we're not parsing HTTP, return EPARSE when we get an HTTP message. --- diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 8728a00..e418893 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -3062,11 +3062,13 @@ gst_rtsp_source_dispatch (GSource * source, GSourceFunc callback G_GNUC_UNUSED, watch->message.type_data.request.method = GST_RTSP_INVALID; if (watch->message.type_data.request.version != GST_RTSP_VERSION_1_0) watch->message.type_data.request.version = GST_RTSP_VERSION_INVALID; + res = GST_RTSP_EPARSE; } else if (watch->message.type == GST_RTSP_MESSAGE_HTTP_RESPONSE) { watch->message.type = GST_RTSP_MESSAGE_RESPONSE; if (watch->message.type_data.response.version != GST_RTSP_VERSION_1_0) watch->message.type_data.response.version = GST_RTSP_VERSION_INVALID; + res = GST_RTSP_EPARSE; } }