[MPlayer-dev-eng] [PATCH 3/4] stream ftp: Set type to STREAMTYPE_STREAM
Alexander Strasser
eclipse7 at gmx.net
Thu Nov 22 22:27:48 CET 2012
Previously this was not set at all from within the stream_ftp module.
This caused the run-time warning message "Streams need a type!".
The actual behaviour should not be affected by this change.
Signed-off-by: Alexander Strasser <eclipse7 at gmx.net>
---
Maybe it makes a difference for the GUI. AFAICT in mplayer we
are not checking if it is STREAMTYPE_STREAM but rather if it is
something else (e.g. STREAMTYPE_FILE to know if we can afford
seeking).
stream/stream_ftp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/stream/stream_ftp.c b/stream/stream_ftp.c
index 3736ecd..17bdc01 100644
--- a/stream/stream_ftp.c
+++ b/stream/stream_ftp.c
@@ -513,6 +513,7 @@ static int open_f(stream_t *stream,int mode, void* opts, av_unused int* file_for
stream->priv = p;
stream->fill_buffer = fill_buffer;
stream->close = close_f;
+ stream->type = STREAMTYPE_STREAM;
return STREAM_OK;
}
--
1.7.10.2.552.gaa3bb87
More information about the MPlayer-dev-eng
mailing list