diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-06-23 14:05:46 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-06-23 14:05:46 +0000 |
commit | 5e9ccc6f1f1689a317e574f48d3acedce3d11a40 (patch) | |
tree | b961d633902e7376ad290c0ebf5942e527f22e70 /src/input/input_dvd.c | |
parent | 9c5b2e031da3fcc4fd6785fae411e43bd6db5f9a (diff) | |
download | xine-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_dvd.c')
-rw-r--r-- | src/input/input_dvd.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index 3c49e5948..968af4ce2 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.10 2001/06/21 17:34:23 guenter Exp $ + * $Id: input_dvd.c,v 1.11 2001/06/23 14:05:47 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -428,14 +428,13 @@ static mrl_t **dvd_plugin_get_dir (input_plugin_t *this_gen, dvd_input_plugin_t *this = (dvd_input_plugin_t *) this_gen; int i, fd; - if (filename) { - *nEntries = 0; + *nEntries = 0; + + if (filename) return NULL; - } - + if((fd = open(DVD, O_RDONLY|O_NONBLOCK)) > -1) { - - int nFiles, nFiles2; + int nFiles, nFiles2; UDFListDir (fd, "/VIDEO_TS", MAX_DIR_ENTRIES, this->filelist, &nFiles); @@ -468,10 +467,11 @@ static mrl_t **dvd_plugin_get_dir (input_plugin_t *this_gen, close (fd); - } else { - *nEntries = 0; - return NULL; } + else + return NULL; + + this->mrls[*nEntries] = NULL; return this->mrls; } |