aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-04 16:00:07 +0000
committerGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-04 16:00:07 +0000
commit8742c266db1a01e3b3de88f7983b38d6d15390a4 (patch)
tree8c1250e399eb293d51f64b3c8bf75af48eef99ab
parent7043b6d0d171f68440dedbc0c5504e733050b4e0 (diff)
in ifo_stream_open() propagate the device based on the dirname of stream->url; patch by Mathieu SCHROETER mathieu.schroeter gamesover ch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27197 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--stream/stream_dvd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 98b648126b..32c852e0bd 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -1095,6 +1095,7 @@ ifo_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
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)