rtsp-media: don't seek accurate by default
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 1 Oct 2013 15:16:11 +0000 (17:16 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 1 Oct 2013 15:16:11 +0000 (17:16 +0200)
Accurate seeking is perhaps a little overkill in the most common situation and
causes some formats (mp3) over slow media to seek extremely slowly.

gst/rtsp-server/rtsp-media.c

index 2c1f53d..293a4d8 100644 (file)
@@ -1270,6 +1270,7 @@ gst_rtsp_media_seek (GstRTSPMedia * media, GstRTSPTimeRange * range)
   /* depends on the current playing state of the pipeline. We might need to
    * queue this until we get EOS. */
   flags = GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE | GST_SEEK_FLAG_KEY_UNIT;
+  flags = GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT;
 
   start_type = stop_type = GST_SEEK_TYPE_NONE;