From 8742c266db1a01e3b3de88f7983b38d6d15390a4 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Fri, 4 Jul 2008 16:00:07 +0000 Subject: 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 --- stream/stream_dvd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'stream') 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) -- cgit v1.2.3