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
ca6110d9
Commit
ca6110d9
authored
Jun 25, 2010
by
Aaron Griffith
Committed by
Max Kellermann
Jun 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist_list: wait for input stream to become ready
Fixes an assertion failure in the input_stream_seek() call.
parent
a219d488
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
playlist_list.c
src/playlist_list.c
+22
-0
No files found.
src/playlist_list.c
View file @
ca6110d9
...
...
@@ -192,11 +192,22 @@ playlist_list_open_uri(const char *uri)
static
struct
playlist_provider
*
playlist_list_open_stream_mime
(
struct
input_stream
*
is
)
{
GError
*
error
=
NULL
;
struct
playlist_provider
*
playlist
;
assert
(
is
!=
NULL
);
assert
(
is
->
mime
!=
NULL
);
while
(
!
is
->
ready
)
{
int
ret
=
input_stream_buffer
(
is
,
&
error
);
if
(
ret
<
0
)
{
input_stream_close
(
is
);
g_warning
(
"%s"
,
error
->
message
);
g_error_free
(
error
);
return
NULL
;
}
}
for
(
unsigned
i
=
0
;
playlist_plugins
[
i
]
!=
NULL
;
++
i
)
{
const
struct
playlist_plugin
*
plugin
=
playlist_plugins
[
i
];
...
...
@@ -220,11 +231,22 @@ playlist_list_open_stream_mime(struct input_stream *is)
static
struct
playlist_provider
*
playlist_list_open_stream_suffix
(
struct
input_stream
*
is
,
const
char
*
suffix
)
{
GError
*
error
=
NULL
;
struct
playlist_provider
*
playlist
;
assert
(
is
!=
NULL
);
assert
(
suffix
!=
NULL
);
while
(
!
is
->
ready
)
{
int
ret
=
input_stream_buffer
(
is
,
&
error
);
if
(
ret
<
0
)
{
input_stream_close
(
is
);
g_warning
(
"%s"
,
error
->
message
);
g_error_free
(
error
);
return
NULL
;
}
}
for
(
unsigned
i
=
0
;
playlist_plugins
[
i
]
!=
NULL
;
++
i
)
{
const
struct
playlist_plugin
*
plugin
=
playlist_plugins
[
i
];
...
...
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