summaryrefslogtreecommitdiffstats
path: root/demux
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-15 16:48:56 +0100
committerwm4 <wm4@nowhere>2014-02-16 03:51:02 +0100
commit486658e5c75a036e1b9eea953021c46d7ecc6b85 (patch)
tree4324e531d7e70914238a7d597f1469963eaf4630 /demux
parentc236cb767918c751c3db2e04901dd47ed93402cd (diff)
downloadmpv-486658e5c75a036e1b9eea953021c46d7ecc6b85.tar.bz2
mpv-486658e5c75a036e1b9eea953021c46d7ecc6b85.tar.xz
demux: expose stream_type_name() function
Diffstat (limited to 'demux')
-rw-r--r--demux/demux.c2
-rw-r--r--demux/demux.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/demux/demux.c b/demux/demux.c
index e2907d5ee3..02e50a53c0 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -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";
diff --git a/demux/demux.h b/demux/demux.h
index 6b5f43e67d..3d3a3e5bc8 100644
--- a/demux/demux.h
+++ b/demux/demux.h
@@ -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 */