[vlc-commits] tta: handle seek error
    Rémi Denis-Courmont 
    git at videolan.org
       
    Sun Jul 23 16:53:55 CEST 2017
    
    
  
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 23 16:56:00 2017 +0300| [70fa3d8b32907d3ff612fbf2a10672f79fe37fb2] | committer: Rémi Denis-Courmont
tta: handle seek error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70fa3d8b32907d3ff612fbf2a10672f79fe37fb2
---
 modules/demux/tta.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/tta.c b/modules/demux/tta.c
index 6e616299d5..c95a9a156c 100644
--- a/modules/demux/tta.c
+++ b/modules/demux/tta.c
@@ -256,7 +256,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                 {
                     tmp += p_sys->pi_seektable[i];
                 }
-                vlc_stream_Seek( p_demux->s, tmp+p_sys->i_start );
+                if( vlc_stream_Seek( p_demux->s, tmp+p_sys->i_start ) )
+                    return VLC_EGENERIC;
                 p_sys->i_currentframe = i;
                 return VLC_SUCCESS;
             }
    
    
More information about the vlc-commits
mailing list