From a4b4b991dc8d891a20caa41a44702a6fe1e03a3a Mon Sep 17 00:00:00 2001 From: nicodvb Date: Fri, 4 Jul 2008 16:03:57 +0000 Subject: 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 --- stream/stream_dvd.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'stream/stream_dvd.c') 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 = { -- cgit v1.2.3