changeset 18078:aeb937690d3d

missing ifoClose and return 1. Patch by kiriuja (mplayer-patches at en-directo net)
author reimar
date Wed, 12 Apr 2006 11:19:49 +0000
parents cede662f40a5
children f57317460375
files libmpdemux/stream_dvd.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/stream_dvd.c	Tue Apr 11 20:05:24 2006 +0000
+++ b/libmpdemux/stream_dvd.c	Wed Apr 12 11:19:49 2006 +0000
@@ -465,7 +465,10 @@
         return 0;
 
     if(!vts_file->vtsi_mat || !vts_file->vts_pgcit)
+    {
+        ifoClose(vts_file);
         return 0;
+    }
 
     for(title_no = 0; title_no < tt_srpt->nr_of_srpts; title_no++)
     {
@@ -475,6 +478,7 @@
         mp_msg(MSGT_GLOBAL, MSGL_INFO, "ID_DVD_TITLE_%d_LENGTH=%d.%03d\n", title_no + 1, msec / 1000, msec % 1000);
     }
     ifoClose(vts_file);
+    return 1;
 }
 
 static int control(stream_t *stream,int cmd,void* arg)