added new stream_control() and new command: STREAM_CTRL_GET_TIME_LENGTH

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17697 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-02-27 21:06:47 +00:00
parent aba3f4a7ab
commit 22226f94df
2 changed files with 6 additions and 0 deletions

View File

@ -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));

View File

@ -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"