[vlc-commits] record: reject directories
    Rémi Denis-Courmont 
    git at videolan.org
       
    Sat Mar 31 17:02:17 CEST 2018
    
    
  
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 31 15:44:38 2018 +0300| [1f7058ade5a3b03f3ed84d6af3f7f473a4f0040d] | committer: Rémi Denis-Courmont
record: reject directories
This would not work anyway.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f7058ade5a3b03f3ed84d6af3f7f473a4f0040d
---
 modules/stream_filter/record.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/modules/stream_filter/record.c b/modules/stream_filter/record.c
index ced4e31271..9b4a160556 100644
--- a/modules/stream_filter/record.c
+++ b/modules/stream_filter/record.c
@@ -80,6 +80,9 @@ static int Open ( vlc_object_t *p_this )
     stream_t *s = (stream_t*)p_this;
     stream_sys_t *p_sys;
 
+    if( vlc_stream_Control( s->s, STREAM_IS_DIRECTORY ) == VLC_SUCCESS )
+        return VLC_EGENERIC;
+
     /* */
     s->p_sys = p_sys = malloc( sizeof( *p_sys ) );
     if( !p_sys )
    
    
More information about the vlc-commits
mailing list