summaryrefslogtreecommitdiff
path: root/src/input/input_vcd.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-06-02 21:44:01 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-06-02 21:44:01 +0000
commit22d3c2d38b8d31826f0166b17bc2c631a369c9e4 (patch)
tree08d16a979b0eae4873ff83b94cb751e4fc509029 /src/input/input_vcd.c
parentf3e31d167d315532e9e1f5ed6dee4fd6981e83b9 (diff)
downloadxine-lib-22d3c2d38b8d31826f0166b17bc2c631a369c9e4.tar.gz
xine-lib-22d3c2d38b8d31826f0166b17bc2c631a369c9e4.tar.bz2
make input plugins return file sizes in mrl_t (ls function)
CVS patchset: 114 CVS date: 2001/06/02 21:44:01
Diffstat (limited to 'src/input/input_vcd.c')
-rw-r--r--src/input/input_vcd.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/input/input_vcd.c b/src/input/input_vcd.c
index 4ed93ffdf..4222e6e45 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.7 2001/05/30 21:48:23 f1rmb Exp $
+ * $Id: input_vcd.c,v 1.8 2001/06/02 21:44:01 guenter Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -706,9 +706,12 @@ static mrl_t **vcd_plugin_get_dir (input_plugin_t *this_gen,
/* printf ("%d tracks\n", this->total_tracks); */
for (i=1; i<this->total_tracks; i++) { /* FIXME: check if track 0 contains valid data */
- sprintf (this->mrls[i-1]->filename, "vcd://%d",i);
+ sprintf (this->mrls[i-1]->mrl, "vcd://%d",i);
this->mrls[i-1]->type = mrl_vcd;
- /* printf ("list[%d] : %d %s\n", i, this->mrls[i-1]->filename); */
+
+ /* hack */
+ this->cur_track = i;
+ this->mrls[i-1]->size = vcd_plugin_get_length ((input_plugin_t *) this);
}
return this->mrls;
@@ -795,7 +798,8 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) {
for (i = 0; i < 100; i++) {
this->filelist[i] = (char *) malloc (256);
this->mrls[i] = (mrl_t *) malloc(sizeof(mrl_t));
- this->mrls[i]->filename = (char *) malloc (256);
+ this->mrls[i]->mrl = (char *) malloc (256);
+ this->mrls[i]->size = 0;
}
this->mrls_allocated_entries = 100;