From 8de843733d5fc41a53839c1f1e35829142eea586 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 21 Nov 2019 17:12:45 +0100 Subject: [PATCH] rtsp-client: Revitalize dead code Leftover from 65d9aa327cd1844934836249cd4463edf09c725d CID: 1455379 --- gst/rtsp-server/rtsp-client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index cf469dd..d542af8 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -1877,6 +1877,10 @@ setup_play_mode (GstRTSPClient * client, GstRTSPContext * ctx, } else { flags = GST_SEEK_FLAG_KEY_UNIT; } + + if (seek_style) + gst_rtsp_message_add_header (ctx->response, GST_RTSP_HDR_SEEK_STYLE, + seek_style); } else { flags = GST_SEEK_FLAG_ACCURATE; } @@ -1954,7 +1958,6 @@ handle_play_request (GstRTSPClient * client, GstRTSPContext * ctx) GstRTSPRangeUnit unit = GST_RTSP_RANGE_NPT; gchar *path, *rtpinfo = NULL; gint matched; - gchar *seek_style = NULL; GstRTSPStatusCode sig_result; GPtrArray *transports; gboolean scale_present; @@ -2032,9 +2035,6 @@ handle_play_request (GstRTSPClient * client, GstRTSPContext * ctx) if (rtpinfo) gst_rtsp_message_take_header (ctx->response, GST_RTSP_HDR_RTP_INFO, rtpinfo); - if (seek_style) - gst_rtsp_message_add_header (ctx->response, GST_RTSP_HDR_SEEK_STYLE, - seek_style); /* add the range */ str = gst_rtsp_media_get_range_string (media, TRUE, unit); -- 2.7.4