demux: expose stream_type_name() function

This commit is contained in:
wm4 2014-02-15 16:48:56 +01:00
parent c236cb7679
commit 486658e5c7
2 changed files with 3 additions and 1 deletions

View File

@ -281,7 +281,7 @@ void free_demuxer(demuxer_t *demuxer)
talloc_free(demuxer);
}
static const char *stream_type_name(enum stream_type type)
const char *stream_type_name(enum stream_type type)
{
switch (type) {
case STREAM_VIDEO: return "video";

View File

@ -304,4 +304,6 @@ void mp_tags_clear(struct mp_tags *tags);
bool demux_matroska_uid_cmp(struct matroska_segment_uid *a,
struct matroska_segment_uid *b);
const char *stream_type_name(enum stream_type type);
#endif /* MPLAYER_DEMUXER_H */