mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
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:
parent
aba3f4a7ab
commit
22226f94df
@ -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));
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user