mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
rtsp-client: Revitalize dead code
Leftover from 65d9aa327c
CID: 1455379
This commit is contained in:
parent
5ceb2cf83f
commit
8de843733d
1 changed files with 4 additions and 4 deletions
|
@ -1877,6 +1877,10 @@ setup_play_mode (GstRTSPClient * client, GstRTSPContext * ctx,
|
||||||
} else {
|
} else {
|
||||||
flags = GST_SEEK_FLAG_KEY_UNIT;
|
flags = GST_SEEK_FLAG_KEY_UNIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (seek_style)
|
||||||
|
gst_rtsp_message_add_header (ctx->response, GST_RTSP_HDR_SEEK_STYLE,
|
||||||
|
seek_style);
|
||||||
} else {
|
} else {
|
||||||
flags = GST_SEEK_FLAG_ACCURATE;
|
flags = GST_SEEK_FLAG_ACCURATE;
|
||||||
}
|
}
|
||||||
|
@ -1954,7 +1958,6 @@ handle_play_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
||||||
GstRTSPRangeUnit unit = GST_RTSP_RANGE_NPT;
|
GstRTSPRangeUnit unit = GST_RTSP_RANGE_NPT;
|
||||||
gchar *path, *rtpinfo = NULL;
|
gchar *path, *rtpinfo = NULL;
|
||||||
gint matched;
|
gint matched;
|
||||||
gchar *seek_style = NULL;
|
|
||||||
GstRTSPStatusCode sig_result;
|
GstRTSPStatusCode sig_result;
|
||||||
GPtrArray *transports;
|
GPtrArray *transports;
|
||||||
gboolean scale_present;
|
gboolean scale_present;
|
||||||
|
@ -2032,9 +2035,6 @@ handle_play_request (GstRTSPClient * client, GstRTSPContext * ctx)
|
||||||
if (rtpinfo)
|
if (rtpinfo)
|
||||||
gst_rtsp_message_take_header (ctx->response, GST_RTSP_HDR_RTP_INFO,
|
gst_rtsp_message_take_header (ctx->response, GST_RTSP_HDR_RTP_INFO,
|
||||||
rtpinfo);
|
rtpinfo);
|
||||||
if (seek_style)
|
|
||||||
gst_rtsp_message_add_header (ctx->response, GST_RTSP_HDR_SEEK_STYLE,
|
|
||||||
seek_style);
|
|
||||||
|
|
||||||
/* add the range */
|
/* add the range */
|
||||||
str = gst_rtsp_media_get_range_string (media, TRUE, unit);
|
str = gst_rtsp_media_get_range_string (media, TRUE, unit);
|
||||||
|
|
Loading…
Reference in a new issue