[libbluray-devel] commit: Added _close_playlist() (hpi1 )
git at videolan.org
git at videolan.org
Sun Sep 5 15:03:14 CEST 2010
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Sep 5 00:08:17 2010 +0300| [715b2d26e6fbf00afe292c8778e4048799f1609e] | committer: hpi1
Added _close_playlist()
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=715b2d26e6fbf00afe292c8778e4048799f1609e
---
src/libbluray/bluray.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 0ffc2f1..5f332a6 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -807,11 +807,19 @@ int bd_read(BLURAY *bd, unsigned char *buf, int len)
* select title / angle
*/
-static int _open_playlist(BLURAY *bd, const char *f_name)
+static void _close_playlist(BLURAY *bd)
{
+ _close_m2ts(&bd->st0);
+
if (bd->title) {
nav_title_close(bd->title);
+ bd->title = NULL;
}
+}
+
+static int _open_playlist(BLURAY *bd, const char *f_name)
+{
+ _close_playlist(bd);
bd->title = nav_title_open(bd->device_path, f_name);
if (bd->title == NULL) {
More information about the libbluray-devel
mailing list