summaryrefslogtreecommitdiffstats
path: root/stream/stream_avdevice.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_avdevice.c')
-rw-r--r--stream/stream_avdevice.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/stream/stream_avdevice.c b/stream/stream_avdevice.c
index 5e8aefd018..b4983b507a 100644
--- a/stream/stream_avdevice.c
+++ b/stream/stream_avdevice.c
@@ -20,11 +20,8 @@
#include "stream.h"
-static int open_f(stream_t *stream, int mode)
+static int open_f(stream_t *stream)
{
- if (mode != STREAM_READ)
- return STREAM_ERROR;
-
stream->type = STREAMTYPE_AVDEVICE;
stream->demuxer = "lavf";