summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/stream.c5
-rw-r--r--libmpdemux/stream.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/libmpdemux/stream.c b/libmpdemux/stream.c
index 4eebbbc485..8b4b21fd14 100644
--- a/libmpdemux/stream.c
+++ b/libmpdemux/stream.c
@@ -347,6 +347,11 @@ void stream_reset(stream_t *s){
//stream_seek(s,0);
}
+void stream_control(stream_t *s, int cmd, void *arg){
+ if(!s->control) return STREAM_UNSUPORTED;
+ return s->control(s, cmd, arg);
+}
+
stream_t* new_memory_stream(unsigned char* data,int len){
stream_t *s=malloc(sizeof(stream_t)+len);
memset(s,0,sizeof(stream_t));
diff --git a/libmpdemux/stream.h b/libmpdemux/stream.h
index 19c9e7a3fc..b1d303581a 100644
--- a/libmpdemux/stream.h
+++ b/libmpdemux/stream.h
@@ -48,6 +48,7 @@
#define MAX_STREAM_PROTOCOLS 10
#define STREAM_CTRL_RESET 0
+#define STREAM_CTRL_GET_TIME_LENGTH 1
#ifdef MPLAYER_NETWORK
#include "network.h"