mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
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:
parent
0bb0e3733c
commit
fee8216513
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue