changeset 17712:a320248c2450

stream_control() returns int, not void
author nicodvb
date Wed, 01 Mar 2006 21:56:30 +0000
parents 8aa18d8e5eb6
children 80bc92fd883a
files libmpdemux/stream.c libmpdemux/stream.h
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/stream.c	Wed Mar 01 14:19:37 2006 +0000
+++ b/libmpdemux/stream.c	Wed Mar 01 21:56:30 2006 +0000
@@ -347,7 +347,7 @@
   //stream_seek(s,0);
 }
 
-void stream_control(stream_t *s, int cmd, void *arg){
+int stream_control(stream_t *s, int cmd, void *arg){
   if(!s->control) return STREAM_UNSUPORTED;
   return s->control(s, cmd, arg);
 }
--- a/libmpdemux/stream.h	Wed Mar 01 14:19:37 2006 +0000
+++ b/libmpdemux/stream.h	Wed Mar 01 21:56:30 2006 +0000
@@ -251,6 +251,7 @@
 }
 
 void stream_reset(stream_t *s);
+int stream_control(stream_t *s, int cmd, void *arg);
 stream_t* new_stream(int fd,int type);
 void free_stream(stream_t *s);
 stream_t* new_memory_stream(unsigned char* data,int len);