gst-libs/gst/rtsp/gstrtspmessage.c: Fix the g_return_val_if_fail() statements.
authorWim Taymans <wim.taymans@gmail.com>
Tue, 23 Sep 2008 17:48:14 +0000 (17:48 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 23 Sep 2008 17:48:14 +0000 (17:48 +0000)
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
gst-libs/gst/rtsp/gstrtspmessage.c

index a3838b13d9f89a108a87578ce4d9430eb16a6a4b..5b92879527e0aa6b859cda8ab01768a755f170b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-09-23  Wim Taymans  <wim.taymans@collabora.co.uk>
+
+       * 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 <msmith@songbirdnest.com>
 
        * gst-libs/gst/tag/gsttagdemux.c:
index c7017e9c49df382d8175a12db0730cbade034d1b..9ec3ec1bfc9938d841631f8c3e5f0c9be8c934d0 100644 (file)
@@ -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)