}
static gboolean
-handle_blocksize (GstRTSPMedia * media, GstRTSPMessage * request)
+handle_blocksize (GstRTSPMedia * media, GstRTSPStream * stream,
+ GstRTSPMessage * request)
{
gchar *blocksize_str;
gboolean ret = TRUE;
if (blocksize > G_MAXUINT)
blocksize = G_MAXUINT;
- gst_rtsp_media_set_mtu (media, blocksize);
+ gst_rtsp_stream_set_mtu (stream, blocksize);
}
}
return ret;
state->stream = stream;
- /* FIXME set only on this stream */
- if (!handle_blocksize (media, state->request))
+ /* set blocksize on this stream */
+ if (!handle_blocksize (media, stream, state->request))
goto invalid_blocksize;
/* update the client transport */