rtsp: fix g_return condition

when parsing a data message, we require a data message.
This commit is contained in:
Wim Taymans 2009-03-11 16:20:20 +01:00
parent 4cbe4d2c72
commit b674584e97

View file

@ -412,7 +412,7 @@ GstRTSPResult
gst_rtsp_message_parse_data (GstRTSPMessage * msg, guint8 * channel)
{
g_return_val_if_fail (msg != NULL, GST_RTSP_EINVAL);
g_return_val_if_fail (msg->type != GST_RTSP_MESSAGE_DATA, GST_RTSP_EINVAL);
g_return_val_if_fail (msg->type == GST_RTSP_MESSAGE_DATA, GST_RTSP_EINVAL);
if (channel)
*channel = msg->type_data.data.channel;