From 22d3c2d38b8d31826f0166b17bc2c631a369c9e4 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sat, 2 Jun 2001 21:44:01 +0000 Subject: make input plugins return file sizes in mrl_t (ls function) CVS patchset: 114 CVS date: 2001/06/02 21:44:01 --- src/input/input_vcd.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/input/input_vcd.c') 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; itotal_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; -- cgit v1.2.3