mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
Do not take range header if range is invalid
This commit is contained in:
parent
6ac547cc34
commit
7618800088
1 changed files with 2 additions and 1 deletions
|
@ -1086,7 +1086,8 @@ handle_play_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
|||
|
||||
/* add the range */
|
||||
str = gst_rtsp_media_get_range_string (media, TRUE, unit);
|
||||
gst_rtsp_message_take_header (ctx->response, GST_RTSP_HDR_RANGE, str);
|
||||
if (str)
|
||||
gst_rtsp_message_take_header (ctx->response, GST_RTSP_HDR_RANGE, str);
|
||||
|
||||
send_message (client, session, ctx->response, FALSE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue