From: <wt...@ke...> - 2008-09-23 17:48:38
|
CVS Root: /cvs/gstreamer Module: gst-plugins-base Changes by: wtay Date: Tue Sep 23 2008 17:48:28 UTC Log message: * gst-libs/gst/rtsp/gstrtspmessage.c: (gst_rtsp_message_parse_request), (gst_rtsp_message_parse_response): Fix the g_return_val_if_fail() statements. Modified files: . : ChangeLog gst-libs/gst/rtsp: gstrtspmessage.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.4123&r2=1.4124 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/gst-libs/gst/rtsp/gstrtspmessage.c.diff?r1=1.6&r2=1.7 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-base/ChangeLog,v retrieving revision 1.4123 retrieving revision 1.4124 diff -u -d -r1.4123 -r1.4124 --- ChangeLog 22 Sep 2008 17:44:11 -0000 1.4123 +++ ChangeLog 23 Sep 2008 17:48:12 -0000 1.4124 @@ -1,3 +1,10 @@ +2008-09-23 Wim Taymans <wim...@co...> + + * 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 <ms...@so...> * gst-libs/gst/tag/gsttagdemux.c: Index: gstrtspmessage.c RCS file: /cvs/gstreamer/gst-plugins-base/gst-libs/gst/rtsp/gstrtspmessage.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- gstrtspmessage.c 7 Feb 2008 12:17:49 -0000 1.6 +++ gstrtspmessage.c 23 Sep 2008 17:48:14 -0000 1.7 @@ -213,7 +213,7 @@ 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 @@ GstRTSPStatusCode * code, const gchar ** reason, GstRTSPVersion * version) - 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) |