summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-04 16:03:57 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-04 16:03:57 +0000
commita4b4b991dc8d891a20caa41a44702a6fe1e03a3a (patch)
treee99eb98cc2aa4c22e9ce5e18a3d1b4f8c94fe771 /stream/stream_dvd.c
parent8742c266db1a01e3b3de88f7983b38d6d15390a4 (diff)
downloadmpv-a4b4b991dc8d891a20caa41a44702a6fe1e03a3a.tar.bz2
mpv-a4b4b991dc8d891a20caa41a44702a6fe1e03a3a.tar.xz
cosmetics: in ifo_stream_oped() aligned the prototype to the style
of the rest of the file and renamed dvd_priv to spriv (it's a stream_priv_s*, while dvd_priv is used for other purposes in the rest of the file) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27198 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c
index 32c852e0bd..c9af10d517 100644
--- a/stream/stream_dvd.c
+++ b/stream/stream_dvd.c
@@ -1079,12 +1079,11 @@ fail:
return STREAM_UNSUPPORTED;
}
-static int
-ifo_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
+static int ifo_stream_open (stream_t *stream, int mode, void *opts, int *file_format)
{
char *ext;
char* filename;
- struct stream_priv_s *dvd_priv;
+ struct stream_priv_s *spriv;
ext = strrchr (stream->url, '.');
if (!ext || strcasecmp (ext + 1, "ifo"))
@@ -1094,20 +1093,20 @@ 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));
+ spriv=calloc(1, sizeof(struct stream_priv_s));
+ spriv->device = strdup(dirname(stream->url));
if(!strncasecmp(filename,"vts_",4))
{
- if(sscanf(filename+3, "_%02d_", &dvd_priv->title)!=1)
- dvd_priv->title=1;
+ if(sscanf(filename+3, "_%02d_", &spriv->title)!=1)
+ spriv->title=1;
}else
- dvd_priv->title=1;
+ spriv->title=1;
free(filename);
free(stream->url);
stream->url=strdup("dvd://");
- return open_s(stream, mode, dvd_priv, file_format);
+ return open_s(stream, mode, spriv, file_format);
}
const stream_info_t stream_info_dvd = {