mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtsp: fix g_return condition
when parsing a data message, we require a data message.
This commit is contained in:
parent
4cbe4d2c72
commit
b674584e97
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue