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.
This commit is contained in:
Wim Taymans 2008-09-23 17:48:14 +00:00
parent 46ce5c3737
commit c9566ebd68
2 changed files with 9 additions and 2 deletions

View file

@ -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:

View 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)