[MPlayer-cvslog] r34987 - trunk/stream/stream_dvd.c

reimar subversion at mplayerhq.hu
Sat Jun 2 18:35:44 CEST 2012


Author: reimar
Date: Sat Jun  2 18:35:44 2012
New Revision: 34987

Log:
Use our own mp_dirname/mp_basename instead of system
dirname/basename.

Modified:
   trunk/stream/stream_dvd.c

Modified: trunk/stream/stream_dvd.c
==============================================================================
--- trunk/stream/stream_dvd.c	Sat Jun  2 17:38:34 2012	(r34986)
+++ trunk/stream/stream_dvd.c	Sat Jun  2 18:35:44 2012	(r34987)
@@ -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 @@ static int ifo_stream_open (stream_t *st
 
     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)


More information about the MPlayer-cvslog mailing list