[libbluray-devel] Use correct clip in _find_ig_stream()
hpi1
git at videolan.org
Tue May 27 11:29:19 CEST 2014
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue May 27 12:24:57 2014 +0300| [07e70c2f9c9ece046698642adaf92bc1ddd3aaa5] | committer: hpi1
Use correct clip in _find_ig_stream()
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=07e70c2f9c9ece046698642adaf92bc1ddd3aaa5
---
src/libbluray/bluray.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 9b822dd..2a103d8 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1999,7 +1999,8 @@ static int _preload_textst_subpath(BLURAY *bd)
static int _find_ig_stream(BLURAY *bd, uint16_t *pid, int *sub_path_idx, unsigned *sub_clip_idx)
{
- MPLS_PI *pi = &bd->title->pl->play_item[0];
+ unsigned main_clip_idx = bd->st0.clip->ref;
+ MPLS_PI *pi = &bd->title->pl->play_item[main_clip_idx];
unsigned ig_stream = bd_psr_read(bd->regs, PSR_IG_STREAM_ID);
if (ig_stream > 0 && ig_stream <= pi->stn.num_ig) {
More information about the libbluray-devel
mailing list