diff options
author | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-05-03 23:32:56 +0000 |
---|---|---|
committer | arpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-05-03 23:32:56 +0000 |
commit | 01df02c62ca0eb4216a693ce3141f245cb8dd6ff (patch) | |
tree | ebfbfefac23576547d965f1d0a9b318b5dcd58a9 /stream.h | |
parent | dc776b2b5cdddfdf67e90565a8d838259480b101 (diff) | |
download | mpv-01df02c62ca0eb4216a693ce3141f245cb8dd6ff.tar.bz2 mpv-01df02c62ca0eb4216a693ce3141f245cb8dd6ff.tar.xz |
allow playing from stdin
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@693 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream.h')
-rw-r--r-- | stream.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ #define STREAMTYPE_FILE 0 #define STREAMTYPE_VCD 1 +#define STREAMTYPE_STREAM 2 // same as FILE but no seeking (for stdin) #define VCD_SECTOR_SIZE 2352 #define VCD_SECTOR_OFFS 24 @@ -109,7 +110,7 @@ inline static int stream_seek(stream_t *s,unsigned int pos){ } inline static void stream_skip(stream_t *s,int len){ - if(len<0 || len>2*STREAM_BUFFER_SIZE){ + if(len<0 || (len>2*STREAM_BUFFER_SIZE && s->type!=STREAMTYPE_STREAM)){ // negative or big skip! stream_seek(s,stream_tell(s)+len); return; |