summaryrefslogtreecommitdiffstats
path: root/stream/stream_edl.c
blob: 8f9c5a90af87d3e94d5613e8a4eb782c6f23ed9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Dummy stream implementation to enable demux_edl, which is in turn a
// dummy demuxer implementation to enable tl_edl.

#include "stream.h"

static int s_open (struct stream *stream, int mode)
{
    if (mode != STREAM_READ)
        return STREAM_ERROR;

    stream->type = STREAMTYPE_EDL;
    stream->demuxer = "edl";

    return STREAM_OK;
}

const stream_info_t stream_info_edl = {
    .name = "edl",
    .open = s_open,
    .protocols = (const char*[]){"edl", NULL},
};