Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
25f4efcd
Commit
25f4efcd
authored
Oct 30, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: eliminated local variable "tag"
The function ffmpeg_tag() already has the variable base.tag, which can be used for this.
parent
7cbd9821
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
ffmpeg_plugin.c
src/decoder/ffmpeg_plugin.c
+4
-7
No files found.
src/decoder/ffmpeg_plugin.c
View file @
25f4efcd
...
@@ -321,27 +321,24 @@ static struct tag *ffmpeg_tag(char *file)
...
@@ -321,27 +321,24 @@ static struct tag *ffmpeg_tag(char *file)
struct
input_stream
input
;
struct
input_stream
input
;
BasePtrs
base
;
BasePtrs
base
;
bool
ret
;
bool
ret
;
struct
tag
*
tag
=
NULL
;
if
(
!
input_stream_open
(
&
input
,
file
))
{
if
(
!
input_stream_open
(
&
input
,
file
))
{
ERROR
(
"failed to open %s
\n
"
,
file
);
ERROR
(
"failed to open %s
\n
"
,
file
);
return
NULL
;
return
NULL
;
}
}
tag
=
tag_new
();
base
.
decoder
=
NULL
;
base
.
decoder
=
NULL
;
base
.
tag
=
tag
;
base
.
tag
=
tag
_new
()
;
ret
=
ffmpeg_helper
(
&
input
,
ffmpeg_tag_internal
,
&
base
);
ret
=
ffmpeg_helper
(
&
input
,
ffmpeg_tag_internal
,
&
base
);
if
(
ret
)
{
if
(
ret
)
{
free
(
tag
);
free
(
base
.
tag
);
tag
=
NULL
;
base
.
tag
=
NULL
;
}
}
input_stream_close
(
&
input
);
input_stream_close
(
&
input
);
return
tag
;
return
base
.
tag
;
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment