[vlc-commits] http: remove useless seek callback

Rémi Denis-Courmont git at videolan.org
Wed Jun 19 20:12:52 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jun 18 19:17:36 2019 +0300| [e104cdc64a8a1f3f68b3b700f4d4d15ae84f3ec0] | committer: Rémi Denis-Courmont

http: remove useless seek callback

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e104cdc64a8a1f3f68b3b700f4d4d15ae84f3ec0
---

 modules/access/http/access.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/modules/access/http/access.c b/modules/access/http/access.c
index 97f0e7f1f1..a3805d0d42 100644
--- a/modules/access/http/access.c
+++ b/modules/access/http/access.c
@@ -123,13 +123,6 @@ static block_t *LiveRead(stream_t *access, bool *restrict eof)
     return b;
 }
 
-static int NoSeek(stream_t *access, uint64_t pos)
-{
-    (void) access;
-    (void) pos;
-    return VLC_EGENERIC;
-}
-
 static int LiveControl(stream_t *access, int query, va_list args)
 {
     access_sys_t *sys = access->p_sys;
@@ -253,7 +246,7 @@ static int Open(vlc_object_t *obj)
     if (live)
     {
         access->pf_block = LiveRead;
-        access->pf_seek = NoSeek;
+        access->pf_seek = NULL;
         access->pf_control = LiveControl;
     }
     else



More information about the vlc-commits mailing list