aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream
diff options
context:
space:
mode:
authorGravatar ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-03 19:12:31 +0000
committerGravatar ben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-03 19:12:31 +0000
commit6eaeaa734e2a14124dfb3d6cd571f098ef4832be (patch)
tree339135dce5996636c9e7612393ed8bba0931d2c6 /stream
parentcbbbf761c351100b3035df82436ddebe85897e8d (diff)
conversion from stream_null to stream_tv was missing stream type
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19301 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.h1
-rw-r--r--stream/stream_tv.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index acbdc8f5a3..5035bf181c 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -22,6 +22,7 @@
#define STREAMTYPE_VSTREAM 14
#define STREAMTYPE_SDP 15
#define STREAMTYPE_PVR 16
+#define STREAMTYPE_TV 17
#define STREAM_BUFFER_SIZE 2048
diff --git a/stream/stream_tv.c b/stream/stream_tv.c
index 9ffaf08bf2..8275c630c9 100644
--- a/stream/stream_tv.c
+++ b/stream/stream_tv.c
@@ -30,6 +30,7 @@ tv_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
{
extern char* tv_param_channel;
+ stream->type = STREAMTYPE_TV;
*file_format = DEMUXER_TYPE_TV;
if (strlen (stream->url) > 5 && stream->url[5] != '\0')
tv_param_channel = strdup (stream->url + 5);