[libbluray-devel] Always start reading first playitem at first packet of the clip.

hpi1 git at videolan.org
Sun Jun 12 15:06:44 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Jun 12 12:44:46 2011 +0300| [e8e400a9085b1e01bc86bad8376dea3a1ee99543] | committer: hpi1

Always start reading first playitem at first packet of the clip.
Fixes missing PAT/PMT at the beginning of title.

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

 src/libbluray/bdnav/navigation.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/libbluray/bdnav/navigation.c b/src/libbluray/bdnav/navigation.c
index 6f58a18..7c27a1f 100644
--- a/src/libbluray/bdnav/navigation.c
+++ b/src/libbluray/bdnav/navigation.c
@@ -429,8 +429,12 @@ static void _fill_clip(NAV_TITLE *title,
             clip->connection = CONNECT_SEAMLESS;
             break;
         default:
-            clip->start_pkt = clpi_lookup_spn(clip->cl, in_time, 1,
+            if (ref) {
+                clip->start_pkt = clpi_lookup_spn(clip->cl, in_time, 1,
                                               mpls_clip[clip->angle].stc_id);
+            } else {
+                clip->start_pkt = 0;
+            }
             clip->connection = CONNECT_NON_SEAMLESS;
             break;
     }



More information about the libbluray-devel mailing list