[libbluray-devel] Initialize playmark tracking after opening initial clip

hpi1 git at videolan.org
Fri Mar 8 21:11:38 CET 2013


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Mar  8 21:57:23 2013 +0200| [ebf2ae819a59882dac16eac5c073f2de70ff4c21] | committer: hpi1

Initialize playmark tracking after opening initial clip

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 7d38874..7258250 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1965,13 +1965,13 @@ static int _open_playlist(BLURAY *bd, const char *f_name, unsigned angle)
     bd_psr_write(bd->regs, PSR_ANGLE_NUMBER, bd->title->angle + 1);
     bd_psr_write(bd->regs, PSR_CHAPTER, 1);
 
-    _find_next_playmark(bd);
-
     // Get the initial clip of the playlist
     bd->st0.clip = nav_next_clip(bd->title, NULL);
     if (_open_m2ts(bd, &bd->st0)) {
         BD_DEBUG(DBG_BLURAY, "Title %s selected! (%p)\n", f_name, bd);
 
+        _find_next_playmark(bd);
+
         _preload_subpaths(bd);
 
         return 1;



More information about the libbluray-devel mailing list