summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2015-03-25 15:10:53 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2015-03-25 15:28:24 -0400
commit32aed671442fea4df971a920368cf0703fafb6cf (patch)
tree8aecfeaefb8a9be92984dd502671c0e227a58b3b
parent12762ad1a52848577b3476c7cd8a3d4b825a0d75 (diff)
rtspsrc: Remove useless function
This function didn't do anything special, let's not use a function for that.
-rw-r--r--gst/rtsp/gstrtspsrc.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index d5c902528..222570752 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -2410,16 +2410,6 @@ out:
}
static gboolean
-gst_rtspsrc_do_seek (GstRTSPSrc * src, GstSegment * segment)
-{
- src->state = GST_RTSP_STATE_SEEKING;
- /* PLAY will add the range header now. */
- src->need_range = TRUE;
-
- return TRUE;
-}
-
-static gboolean
gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
{
gdouble rate;
@@ -2508,7 +2498,10 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
}
src->skip = skip;
- gst_rtspsrc_do_seek (src, &seeksegment);
+ src->state = GST_RTSP_STATE_SEEKING;
+
+ /* PLAY will add the range header now. */
+ src->need_range = TRUE;
/* and continue playing */
if (playing)