[libbluray-devel] Fixed auto-selecting subtitle track when audio track is already valid

hpi1 git at videolan.org
Thu Jun 20 13:16:22 CEST 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Jun 20 14:09:14 2013 +0300| [4cb342062349484a2e340c5ed08b725a3312e76b] | committer: hpi1

Fixed auto-selecting subtitle track when audio track is already valid

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=4cb342062349484a2e340c5ed08b725a3312e76b
---

 src/libbluray/bluray.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index f3cafc9..163f97f 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -381,6 +381,8 @@ static void _update_clip_psrs(BLURAY *bd, NAV_CLIP *clip)
                                            PSR_AUDIO_LANG, PSR_PRIMARY_AUDIO_ID, 0,
                                            stn->audio, stn->num_audio,
                                            &audio_lang, 0);
+            } else {
+                audio_lang = str_to_uint32((const char *)stn->audio[psr_val - 1].lang, 3);
             }
         }
         if (stn->num_pg) {



More information about the libbluray-devel mailing list