client: refuse to change the MTU on shared media

If we change the MTU of chared media, it changes for all clients.
We don't want to set the MTU to something large for clients that
stream over UDP.
This commit is contained in:
Wim Taymans 2012-10-27 21:05:03 +02:00
parent 0bb0e3733c
commit fee8216513

View file

@ -910,6 +910,11 @@ handle_blocksize (GstRTSPMedia * media, GstRTSPMessage * request)
GST_ERROR ("failed to parse blocksize");
ret = FALSE;
} else {
/* we don't want to change the mtu when this media
* can be shared because it impacts other clients */
if (gst_rtsp_media_is_shared (media))
return TRUE;
if (blocksize > G_MAXUINT)
blocksize = G_MAXUINT;
gst_rtsp_media_set_mtu (media, blocksize);