diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-19 13:38:37 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-19 13:38:37 +0000 |
commit | 8f14f6d551e52afc4142f28ce27e53c2c005e12e (patch) | |
tree | 263366387d5a18e50f3e067ddb07da2a425230d9 /libmpdemux/demux_ogg.c | |
parent | ceecfca462e3c5d947e1eb9c62c3552246273739 (diff) | |
download | mpv-8f14f6d551e52afc4142f28ce27e53c2c005e12e.tar.bz2 mpv-8f14f6d551e52afc4142f28ce27e53c2c005e12e.tar.xz |
Make -slang work again, sub->id is -2 by default, so -slang would be ignored
with old code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21052 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_ogg.c')
-rw-r--r-- | libmpdemux/demux_ogg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c index 201db44212..e0cb4ebb0a 100644 --- a/libmpdemux/demux_ogg.c +++ b/libmpdemux/demux_ogg.c @@ -486,7 +486,7 @@ static void demux_ogg_check_comments(demuxer_t *d, ogg_stream_t *os, int id, vor ogg_d->text_langs[index] = strdup(val); } // check for -slang if subs are uninitialized yet - if (os->text && d->sub->id == -1 && demux_ogg_check_lang(val, dvdsub_lang)) + if (os->text && d->sub->id < 0 && demux_ogg_check_lang(val, dvdsub_lang)) { d->sub->id = id; dvdsub_id = index; |