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
54294366
Commit
54294366
authored
Sep 22, 2010
by
Thomas Jansen
Committed by
Max Kellermann
Sep 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewind_input_plugin: Update MIME not only once
The assumption that MIME type is set only once is not valid with CURL, as URL redirections may update the MIME type. This fixes bug #3044.
parent
4a7abc9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
NEWS
NEWS
+2
-0
rewind_input_plugin.c
src/input/rewind_input_plugin.c
+4
-3
No files found.
NEWS
View file @
54294366
...
@@ -2,6 +2,8 @@ ver 0.15.13 (2010/??/??)
...
@@ -2,6 +2,8 @@ ver 0.15.13 (2010/??/??)
* output_thread: fix race condition after CANCEL command
* output_thread: fix race condition after CANCEL command
* output:
* output:
- httpd: fix random data in stream title
- httpd: fix random data in stream title
* input:
- rewind: update MIME not only once
ver 0.15.12 (2010/07/20)
ver 0.15.12 (2010/07/20)
...
...
src/input/rewind_input_plugin.c
View file @
54294366
...
@@ -86,10 +86,11 @@ copy_attributes(struct input_stream *dest)
...
@@ -86,10 +86,11 @@ copy_attributes(struct input_stream *dest)
dest
->
size
=
src
->
size
;
dest
->
size
=
src
->
size
;
dest
->
offset
=
src
->
offset
;
dest
->
offset
=
src
->
offset
;
if
(
dest
->
mime
==
NULL
&&
src
->
mime
!=
NULL
)
if
(
src
->
mime
!=
NULL
)
{
/* this is set only once, and the duplicated pointer
if
(
dest
->
mime
!=
NULL
)
is freed by input_stream_close() */
g_free
(
dest
->
mime
);
dest
->
mime
=
g_strdup
(
src
->
mime
);
dest
->
mime
=
g_strdup
(
src
->
mime
);
}
}
}
static
void
static
void
...
...
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