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
This commit is contained in:
ben 2006-08-03 19:12:31 +00:00
parent cbbbf761c3
commit 6eaeaa734e
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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);