From c39b7a53592a8eeb9d86752e6cd7cc6bd23b0dd0 Mon Sep 17 00:00:00 2001 From: Miguel Angel Cabrera Moya Date: Wed, 25 May 2011 14:50:26 +0200 Subject: [PATCH] rtspsrc: uniform unknown message handling Do the same processing in all the cases when an unknown message is received. That is, give a warning. https://bugzilla.gnome.org/show_bug.cgi?id=651059 --- gst/rtsp/gstrtspsrc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index b42be25..7ae7097 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -4483,11 +4483,14 @@ next: /* ok, a response is good */ GST_DEBUG_OBJECT (src, "received response message"); break; - default: case GST_RTSP_MESSAGE_DATA: /* get next response */ GST_DEBUG_OBJECT (src, "ignoring data response message"); goto next; + default: + GST_WARNING_OBJECT (src, "ignoring unknown message type %d", + response->type); + goto next; } thecode = response->type_data.response.code; -- 2.7.4