summaryrefslogtreecommitdiff
path: root/src/input/input_dvd.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_dvd.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_dvd.c')
-rw-r--r--src/input/input_dvd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c
index 2d5826fc4..b9ccda9cd 100644
--- a/src/input/input_dvd.c
+++ b/src/input/input_dvd.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_dvd.c,v 1.8 2001/05/30 21:48:23 f1rmb Exp $
+ * $Id: input_dvd.c,v 1.9 2001/06/02 21:44:01 guenter Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -436,11 +436,16 @@ static mrl_t **dvd_plugin_get_dir (input_plugin_t *this_gen,
continue;
if (!strcasecmp (&this->filelist[i][nLen-4], ".VOB")) {
+ char str[1024];
- sprintf (this->mrls[nFiles2]->filename,
+ sprintf (this->mrls[nFiles2]->mrl,
"dvd://%s", this->filelist[i]);
this->mrls[nFiles2]->type = mrl_dvd;
+ /* determine size */
+ sprintf (str, "/VIDEO_TS/%s", this->filelist[i]);
+ UDFFindFile(fd, str, &this->mrls[nFiles2]->size);
+
nFiles2++;
}
@@ -550,7 +555,7 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) {
this->filelist[i] = (char *) malloc (256);
this->filelist2[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_allocated_entries = MAX_DIR_ENTRIES;