[vlc-commits] stream: add assertion

Rémi Denis-Courmont git at videolan.org
Sat Mar 31 17:02:13 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 31 15:31:47 2018 +0300| [e4f6b4480bfaffcd376425f441e489721bd95a9f] | committer: Rémi Denis-Courmont

stream: add assertion

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

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

diff --git a/src/input/stream.c b/src/input/stream.c
index 72760ce82f..90db206d4b 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -722,5 +722,6 @@ block_t *vlc_stream_Block( stream_t *s, size_t size )
  */
 int vlc_stream_ReadDir( stream_t *s, input_item_node_t *p_node )
 {
+    assert(s->pf_readdir != NULL);
     return s->pf_readdir( s, p_node );
 }



More information about the vlc-commits mailing list