[vlc-commits] stream: fix warning

Thomas Guillem git at videolan.org
Tue Jun 23 09:44:10 CEST 2015


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jun 23 09:43:22 2015 +0200| [eac682f2e251f049f942353af788cd2ce88cb055] | committer: Thomas Guillem

stream: fix warning

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

 src/input/stream.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/input/stream.c b/src/input/stream.c
index 7cbf420..8dbae4e 100644
--- a/src/input/stream.c
+++ b/src/input/stream.c
@@ -196,6 +196,7 @@ static input_item_t *AStreamReadDir( stream_t *s );
 
 /* Common */
 static int  AStreamGenericError( ) { return VLC_EGENERIC; }
+static input_item_t * AStreamDirGenericError( ) { return NULL; }
 static int AStreamControl( stream_t *s, int i_query, va_list );
 static void AStreamDestroy( stream_t *s );
 static int  ASeek( stream_t *s, uint64_t i_pos );
@@ -285,7 +286,7 @@ stream_t *stream_AccessNew( access_t *p_access, char **ppsz_list )
 
     s->pf_read    = AStreamGenericError;    /* Replaced later */
     s->pf_peek    = AStreamGenericError;
-    s->pf_readdir = AStreamGenericError;
+    s->pf_readdir = AStreamDirGenericError;
     s->pf_control = AStreamControl;
     s->pf_destroy = AStreamDestroy;
 



More information about the vlc-commits mailing list