From c9566ebd68925e51d0648449afa26a2c911bd2c8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 23 Sep 2008 17:48:14 +0000 Subject: [PATCH] gst-libs/gst/rtsp/gstrtspmessage.c: Fix the g_return_val_if_fail() statements. Original commit message from CVS: * gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_parse_request), (gst_rtsp_message_parse_response): Fix the g_return_val_if_fail() statements. --- ChangeLog | 7 +++++++ gst-libs/gst/rtsp/gstrtspmessage.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a3838b13d..5b9287952 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-09-23 Wim Taymans + + * gst-libs/gst/rtsp/gstrtspmessage.c: + (gst_rtsp_message_parse_request), + (gst_rtsp_message_parse_response): + Fix the g_return_val_if_fail() statements. + 2008-09-22 Michael Smith * gst-libs/gst/tag/gsttagdemux.c: diff --git a/gst-libs/gst/rtsp/gstrtspmessage.c b/gst-libs/gst/rtsp/gstrtspmessage.c index c7017e9c4..9ec3ec1bf 100644 --- a/gst-libs/gst/rtsp/gstrtspmessage.c +++ b/gst-libs/gst/rtsp/gstrtspmessage.c @@ -213,7 +213,7 @@ gst_rtsp_message_parse_request (GstRTSPMessage * msg, GstRTSPMethod * method, const gchar ** uri, GstRTSPVersion * version) { g_return_val_if_fail (msg != NULL, GST_RTSP_EINVAL); - g_return_val_if_fail (msg->type != GST_RTSP_MESSAGE_REQUEST, GST_RTSP_EINVAL); + g_return_val_if_fail (msg->type == GST_RTSP_MESSAGE_REQUEST, GST_RTSP_EINVAL); if (method) *method = msg->type_data.request.method; @@ -340,7 +340,7 @@ gst_rtsp_message_parse_response (GstRTSPMessage * msg, GstRTSPStatusCode * code, const gchar ** reason, GstRTSPVersion * version) { g_return_val_if_fail (msg != NULL, GST_RTSP_EINVAL); - g_return_val_if_fail (msg->type != GST_RTSP_MESSAGE_RESPONSE, + g_return_val_if_fail (msg->type == GST_RTSP_MESSAGE_RESPONSE, GST_RTSP_EINVAL); if (code) -- 2.34.1