Mercurial > mplayer.hg
changeset 34895:3688864260e8
Use our own mp_dirname/mp_basename instead of system
dirname/basename.
author | reimar |
---|---|
date | Sat, 02 Jun 2012 16:35:44 +0000 |
parents | d67796f04f99 |
children | 139743f7e085 |
files | stream/stream_dvd.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvd.c Sat Jun 02 15:19:05 2012 +0000 +++ b/stream/stream_dvd.c Sat Jun 02 16:35:44 2012 +0000 @@ -26,8 +26,8 @@ #include "config.h" #include "mp_msg.h" #include "help_mp.h" +#include "path.h" -#include <libgen.h> #include <errno.h> #define FIRST_AC3_AID 128 @@ -1082,10 +1082,10 @@ mp_msg(MSGT_DVD, MSGL_INFO, ".IFO detected. Redirecting to dvd://\n"); - filename = strdup(basename(stream->url)); + filename = strdup(mp_basename(stream->url)); spriv=calloc(1, sizeof(struct stream_priv_s)); - spriv->device = strdup(dirname(stream->url)); + spriv->device = mp_dirname(stream->url); if(!strncasecmp(filename,"vts_",4)) { if(sscanf(filename+3, "_%02d_", &spriv->title)!=1)