summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_ogg.c
diff options
context:
space:
mode:
authormosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-05-05 21:05:36 +0000
committermosu <mosu@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-05-05 21:05:36 +0000
commit885ed6c52fe9fd3cd4d115116feac2f60b654560 (patch)
treed2c0588645c01b5ea4cbb6fcd380c1994a0cea9d /libmpdemux/demux_ogg.c
parent189922b827b3c3880d3c949c2089e3405e6c91cc (diff)
downloadmpv-885ed6c52fe9fd3cd4d115116feac2f60b654560.tar.bz2
mpv-885ed6c52fe9fd3cd4d115116feac2f60b654560.tar.xz
Be more verbose and tell the user which subtitle stream has been selected (if any).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12431 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_ogg.c')
-rw-r--r--libmpdemux/demux_ogg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c
index 910312446b..87a851698a 100644
--- a/libmpdemux/demux_ogg.c
+++ b/libmpdemux/demux_ogg.c
@@ -440,7 +440,7 @@ static void demux_ogg_check_comments(demuxer_t *d, ogg_stream_t *os, int id, vor
if (os->text && d->sub->id == -1 && demux_ogg_check_lang(val, dvdsub_lang))
{
d->sub->id = id;
- mp_msg(MSGT_DEMUX, MSGL_V, "Stream language matched -slang: %s\n", val);
+ mp_msg(MSGT_DEMUX, MSGL_V, "OGG demuxer: Displaying the subtitle stream with the id %d which matched -slang %s\n", id, val);
}
else
hdr = "Language";
@@ -966,8 +966,10 @@ int demux_ogg_open(demuxer_t* demuxer) {
packet is encountered and the user used -slang instead of -sid. */
if(!n_text)
demuxer->sub->id = -2;
- else if (text_id >= 0)
+ else if (text_id >= 0) {
demuxer->sub->id = text_id;
+ mp_msg(MSGT_DEMUX, MSGL_V, "OGG demuxer: Displaying the subtitle stream with the id %d\n", text_id);
+ }
ogg_d->final_granulepos=0;
if(!s->end_pos)