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
e54748d3
Commit
e54748d3
authored
Jul 03, 2011
by
Skottish
Committed by
Max Kellermann
Jul 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/ffmpeg: use AVIO_FLAG_READ on newer ffmpeg versions
FFmpeg/libav have dropped AVIO_RDONLY in favor of AVIO_FLAG_READ. This patch fixes that in MPD.
parent
08e2e2e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ffmpeg_input_plugin.c
src/input/ffmpeg_input_plugin.c
+3
-1
No files found.
src/input/ffmpeg_input_plugin.c
View file @
e54748d3
...
...
@@ -88,7 +88,9 @@ input_ffmpeg_open(const char *uri, GError **error_r)
i
=
g_new
(
struct
input_ffmpeg
,
1
);
input_stream_init
(
&
i
->
base
,
&
input_plugin_ffmpeg
,
uri
);
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,0,0)
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,1,0)
int
ret
=
avio_open
(
&
i
->
h
,
uri
,
AVIO_FLAG_READ
);
#elif LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53,0,0)
int
ret
=
avio_open
(
&
i
->
h
,
uri
,
AVIO_RDONLY
);
#else
int
ret
=
url_open
(
&
i
->
h
,
uri
,
URL_RDONLY
);
...
...
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