rtsp: add the Scale header when needed

Setting GST_SEEK_FLAG_SKIP when sending a seek event in rtspsrc should
set the "Scale" field in the rtsp PLAY header.
Because the boolean "src->skip" is set after the call, "Speed" instead
of "Scale" is always set. Move the assignment before issuing the _play
request.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676618
This commit is contained in:
Maria Giovanna Chiossa 2012-05-24 09:57:31 +02:00 committed by Wim Taymans
parent f400a06ba5
commit ff019d05f6

View file

@ -1868,6 +1868,7 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
gst_rtspsrc_get_position (src);
gst_rtspsrc_pause (src, FALSE, FALSE);
}
src->skip = skip;
gst_rtspsrc_do_seek (src, &seeksegment);
@ -1907,7 +1908,6 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
GstRTSPStream *stream = (GstRTSPStream *) walk->data;
stream->discont = TRUE;
}
src->skip = skip;
GST_RTSP_STREAM_UNLOCK (src);