[vlc-commits] mmstu: return an error when file size is unknown

Rémi Denis-Courmont git at videolan.org
Mon Aug 31 17:45:08 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 31 18:38:14 2015 +0300| [367b9a8abdd2d557a668994e50bee3c52e31f14a] | committer: Rémi Denis-Courmont

mmstu: return an error when file size is unknown

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

 modules/access/mms/mmstu.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c
index 232bbd0..f184b69 100644
--- a/modules/access/mms/mmstu.c
+++ b/modules/access/mms/mmstu.c
@@ -247,6 +247,8 @@ static int Control( access_t *p_access, int i_query, va_list args )
             break;
 
         case ACCESS_GET_SIZE:
+            if( !p_sys->b_seekable )
+                return VLC_EGENERIC;
             *va_arg( args, uint64_t * ) = p_sys->i_size;
             break;
 



More information about the vlc-commits mailing list