summaryrefslogtreecommitdiff
path: root/src/input/input_vcd.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-06-23 14:05:46 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-06-23 14:05:46 +0000
commit5e9ccc6f1f1689a317e574f48d3acedce3d11a40 (patch)
treeb961d633902e7376ad290c0ebf5942e527f22e70 /src/input/input_vcd.c
parent9c5b2e031da3fcc4fd6785fae411e43bd6db5f9a (diff)
downloadxine-lib-5e9ccc6f1f1689a317e574f48d3acedce3d11a40.tar.gz
xine-lib-5e9ccc6f1f1689a317e574f48d3acedce3d11a40.tar.bz2
Fixed/implement xine_get_browse_mrls(), and related stuff.
CVS patchset: 217 CVS date: 2001/06/23 14:05:46
Diffstat (limited to 'src/input/input_vcd.c')
-rw-r--r--src/input/input_vcd.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/input/input_vcd.c b/src/input/input_vcd.c
index 36a32bb19..00a63ecc5 100644
--- a/src/input/input_vcd.c
+++ b/src/input/input_vcd.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_vcd.c,v 1.10 2001/06/21 17:34:23 guenter Exp $
+ * $Id: input_vcd.c,v 1.11 2001/06/23 14:05:47 f1rmb Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -925,11 +925,11 @@ static mrl_t **vcd_plugin_get_dir (input_plugin_t *this_gen,
vcd_input_plugin_t *this = (vcd_input_plugin_t *) this_gen;
int i;
- if (filename) {
- *nEntries = 0;
- return NULL;
- }
+ *nEntries = 0;
+ if (filename)
+ return NULL;
+
this->fd = open (CDROM, O_RDONLY);
if (this->fd == -1) {
@@ -949,7 +949,7 @@ static mrl_t **vcd_plugin_get_dir (input_plugin_t *this_gen,
close (this->fd);
this->fd = -1;
- *nEntries = this->total_tracks;
+ *nEntries = this->total_tracks - 1;
/* printf ("%d tracks\n", this->total_tracks); */
@@ -962,6 +962,8 @@ static mrl_t **vcd_plugin_get_dir (input_plugin_t *this_gen,
this->mrls[i-1]->size = vcd_plugin_get_length ((input_plugin_t *) this);
}
+ this->mrls[*nEntries] = NULL;
+
return this->mrls;
}