vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Thu Jun 26 
18:34:34 2014 +0300| [076b7a15979951c7e596376a26bf2415ab7eb8a0] | committer: 
Rémi Denis-Courmont

stream: assert that the underlying access is valid

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

 src/input/stream.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/input/stream.c b/src/input/stream.c
index 44138b1..734fcf0 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -298,6 +298,7 @@ stream_t *stream_AccessNew( access_t *p_access, char 
**ppsz_list )
 
     /* Common field */
     p_sys->p_access = p_access;
+    assert( p_access->pf_block || p_access->pf_read || p_access->pf_readdir );
     if( p_access->pf_block )
         p_sys->method = STREAM_METHOD_BLOCK;
     else if( p_access->pf_read )

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to