Do not take range header if range is invalid

This commit is contained in:
Youness Alaoui 2013-07-11 16:11:55 -04:00 committed by Wim Taymans
parent 6ac547cc34
commit 7618800088

View file

@ -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);