[libbluray-devel] bd_play(): added missing psr lock/unlock

hpi1 git at videolan.org
Fri Jun 10 14:29:35 CEST 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Jun 10 15:29:05 2011 +0300| [2da77fecf14454b0021407bd1b976a4e414c9cbc] | committer: hpi1

bd_play(): added missing psr lock/unlock

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

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

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index b149ecb..3567527 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1924,8 +1924,10 @@ int bd_play(BLURAY *bd)
 
     _init_event_queue(bd);
 
+    bd_psr_lock(bd->regs);
     bd_psr_register_cb(bd->regs, _process_psr_event, bd);
     _queue_initial_psr_events(bd);
+    bd_psr_unlock(bd->regs);
 
     return _play_title(bd, BLURAY_TITLE_FIRST_PLAY);
 }



More information about the libbluray-devel mailing list