[libbluray-devel] _preload_textst_subpath(): check if title is opened and subtitle decoding enabled
hpi1
git at videolan.org
Wed Jun 19 15:21:16 CEST 2013
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Jun 19 15:02:28 2013 +0300| [e9b981343b5d4acb2fce780c2d67e754912742da] | committer: hpi1
_preload_textst_subpath(): check if title is opened and subtitle decoding enabled
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=e9b981343b5d4acb2fce780c2d67e754912742da
---
src/libbluray/bluray.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index b4b7c47..e13c491 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1992,6 +1992,10 @@ static int _preload_textst_subpath(BLURAY *bd)
return 0;
}
+ if (!bd->decode_pg || !bd->title) {
+ return 0;
+ }
+
_find_pg_stream(bd, &textst_pid, &textst_subpath, &char_code);
if (textst_subpath < 0) {
return 0;
More information about the libbluray-devel
mailing list