summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-22 15:18:21 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-22 15:18:21 +0000
commitaf2988cbcef1b057772d44b9f9752be3f15960b0 (patch)
treebbac3b16fb874535c07b693d96a59484284a408e /stream
parent302527a111cc88cc0bdd16d74d161eea9577da18 (diff)
downloadmpv-af2988cbcef1b057772d44b9f9752be3f15960b0.tar.bz2
mpv-af2988cbcef1b057772d44b9f9752be3f15960b0.tar.xz
Finally rename the STREAM_SEEK define to MP_STREAM_SEEK, there are just too many
name clashes, in particular with Windows headers (which define STREAM_SEEK as an enum type). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29962 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/http.c2
-rw-r--r--stream/stream.c8
-rw-r--r--stream/stream.h10
-rw-r--r--stream/stream_cue.c2
-rw-r--r--stream/stream_dvd.c2
-rw-r--r--stream/stream_dvdnav.c2
-rw-r--r--stream/stream_file.c2
-rw-r--r--stream/stream_netstream.c2
-rw-r--r--stream/stream_smb.c2
9 files changed, 16 insertions, 16 deletions
diff --git a/stream/http.c b/stream/http.c
index 498e40473c..3ebfe03d05 100644
--- a/stream/http.c
+++ b/stream/http.c
@@ -891,7 +891,7 @@ static int fixup_open(stream_t *stream,int seekable) {
stream->type = STREAMTYPE_STREAM;
if(!is_icy && !is_ultravox && seekable)
{
- stream->flags |= STREAM_SEEK;
+ stream->flags |= MP_STREAM_SEEK;
stream->seek = http_seek;
}
stream->streaming_ctrl->bandwidth = network_bandwidth;
diff --git a/stream/stream.c b/stream/stream.c
index 072e9d0a89..ed41b3e93a 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -174,10 +174,10 @@ stream_t* open_stream_plugin(const stream_info_t* sinfo,char* filename,int mode,
}
if(s->type <= -2)
mp_msg(MSGT_OPEN,MSGL_WARN, "Warning streams need a type !!!!\n");
- if(s->flags & STREAM_SEEK && !s->seek)
- s->flags &= ~STREAM_SEEK;
- if(s->seek && !(s->flags & STREAM_SEEK))
- s->flags |= STREAM_SEEK;
+ if(s->flags & MP_STREAM_SEEK && !s->seek)
+ s->flags &= ~MP_STREAM_SEEK;
+ if(s->seek && !(s->flags & MP_STREAM_SEEK))
+ s->flags |= MP_STREAM_SEEK;
s->mode = mode;
diff --git a/stream/stream.h b/stream/stream.h
index 4aed24526a..4da8a1ae43 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -37,10 +37,10 @@
#define STREAM_READ 0
#define STREAM_WRITE 1
/// Seek flags, if not mannualy set and s->seek isn't NULL
-/// STREAM_SEEK is automaticly set
-#define STREAM_SEEK_BW 2
-#define STREAM_SEEK_FW 4
-#define STREAM_SEEK (STREAM_SEEK_BW|STREAM_SEEK_FW)
+/// MP_STREAM_SEEK is automaticly set
+#define MP_STREAM_SEEK_BW 2
+#define MP_STREAM_SEEK_FW 4
+#define MP_STREAM_SEEK (MP_STREAM_SEEK_BW|MP_STREAM_SEEK_FW)
/** This is a HACK for live555 that does not respect the
separation between stream an demuxer and thus is not
actually a stream cache can not be used */
@@ -276,7 +276,7 @@ inline static int stream_seek(stream_t *s,off_t pos){
}
inline static int stream_skip(stream_t *s,off_t len){
- if( (len<0 && (s->flags & STREAM_SEEK_BW)) || (len>2*STREAM_BUFFER_SIZE && (s->flags & STREAM_SEEK_FW)) ) {
+ if( (len<0 && (s->flags & MP_STREAM_SEEK_BW)) || (len>2*STREAM_BUFFER_SIZE && (s->flags & MP_STREAM_SEEK_FW)) ) {
// negative or big skip!
return stream_seek(s,stream_tell(s)+len);
}
diff --git a/stream/stream_cue.c b/stream/stream_cue.c
index ea9337afb1..53cb01299b 100644
--- a/stream/stream_cue.c
+++ b/stream/stream_cue.c
@@ -578,7 +578,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
stream->fd = f;
stream->type = STREAMTYPE_VCDBINCUE;
stream->sector_size = VCD_SECTOR_DATA;
- stream->flags = STREAM_READ | STREAM_SEEK_FW;
+ stream->flags = STREAM_READ | MP_STREAM_SEEK_FW;
stream->start_pos = ret;
stream->end_pos = ret2;
stream->fill_buffer = cue_vcd_read;
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 46e7100ec1..a9b377a340 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -978,7 +978,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
// return NULL;
stream->type = STREAMTYPE_DVD;
stream->sector_size = 2048;
- stream->flags = STREAM_READ | STREAM_SEEK;
+ stream->flags = STREAM_READ | MP_STREAM_SEEK;
stream->fill_buffer = fill_buffer;
stream->seek = seek;
stream->control = control;
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index 9962c0606f..1d74504fa5 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -596,7 +596,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
dvdnav_angle_change(priv->dvdnav, dvd_angle);
stream->sector_size = 2048;
- stream->flags = STREAM_READ | STREAM_SEEK;
+ stream->flags = STREAM_READ | MP_STREAM_SEEK;
stream->fill_buffer = fill_buffer;
stream->seek = seek;
stream->control = control;
diff --git a/stream/stream_file.c b/stream/stream_file.c
index e113e6788e..9a4d7a3500 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -159,7 +159,7 @@ static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
#endif
if(mode == STREAM_READ) stream->seek = seek_forward;
stream->type = STREAMTYPE_STREAM; // Must be move to STREAMTYPE_FILE
- stream->flags |= STREAM_SEEK_FW;
+ stream->flags |= MP_STREAM_SEEK_FW;
} else if(len >= 0) {
stream->seek = seek;
stream->end_pos = len;
diff --git a/stream/stream_netstream.c b/stream/stream_netstream.c
index ea410c41e7..c0a80689df 100644
--- a/stream/stream_netstream.c
+++ b/stream/stream_netstream.c
@@ -279,7 +279,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
stream->fill_buffer = fill_buffer;
stream->control = control;
- if(stream->flags & STREAM_SEEK)
+ if(stream->flags & MP_STREAM_SEEK)
stream->seek = seek;
stream->close = close_s;
diff --git a/stream/stream_smb.c b/stream/stream_smb.c
index 17ba027687..86bb3f84b0 100644
--- a/stream/stream_smb.c
+++ b/stream/stream_smb.c
@@ -138,7 +138,7 @@ static int open_f (stream_t *stream, int mode, void *opts, int* file_format) {
smbc_lseek (fd, 0, SEEK_SET);
}
if(len > 0 || mode == STREAM_WRITE) {
- stream->flags |= STREAM_SEEK;
+ stream->flags |= MP_STREAM_SEEK;
stream->seek = seek;
if(mode == STREAM_READ) stream->end_pos = len;
}