]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/url.h
Merge commit 'f79d847400d218cfd0b95f10358fe6e65ec3c9c4'
[ffmpeg] / libavformat / url.h
index 5c5024553e811bc533b5abcc45ad036069853324..910f1e00b389455c7806914d30f7992a0a37fbe7 100644 (file)
@@ -84,6 +84,7 @@ typedef struct URLProtocol {
     int (*url_get_file_handle)(URLContext *h);
     int (*url_get_multi_file_handle)(URLContext *h, int **handles,
                                      int *numhandles);
+    int (*url_get_short_seek)(URLContext *h);
     int (*url_shutdown)(URLContext *h, int flags);
     int priv_data_size;
     const AVClass *priv_data_class;
@@ -248,6 +249,13 @@ int ffurl_get_file_handle(URLContext *h);
  */
 int ffurl_get_multi_file_handle(URLContext *h, int **handles, int *numhandles);
 
+/**
+ * Return the current short seek threshold value for this URL.
+ *
+ * @return threshold (>0) on success or <=0 on error.
+ */
+int ffurl_get_short_seek(URLContext *h);
+
 /**
  * Signal the URLContext that we are done reading or writing the stream.
  *