summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);