changeset 27165:e3b2b66834c6

in ifo_stream_open() propagate the device based on the dirname of stream->url; patch by Mathieu SCHROETER mathieu.schroeter gamesover ch
author nicodvb
date Fri, 04 Jul 2008 16:00:07 +0000
parents 4c4ce3ecf125
children e1619590ef03
files stream/stream_dvd.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_dvd.c	Fri Jul 04 15:57:33 2008 +0000
+++ b/stream/stream_dvd.c	Fri Jul 04 16:00:07 2008 +0000
@@ -1095,6 +1095,7 @@
     filename = strdup(basename(stream->url));
 
     dvd_priv=calloc(1, sizeof(struct stream_priv_s));
+    dvd_priv->device = strdup(dirname(stream->url));
     if(!strncasecmp(filename,"vts_",4))
     {
         if(sscanf(filename+3, "_%02d_", &dvd_priv->title)!=1)