input/curl: ignore ResponseBoundary() while seeking
While seeking, metadata must not be updated. ResponseBoundary() was added in MPD 0.19.1, but I forgot to add the IsSeeking() check there. This caused the "seekable" flag to reset.
This commit is contained in:
parent
b5ba94f1de
commit
ff6f1655f0
2
NEWS
2
NEWS
|
@ -3,6 +3,8 @@ ver 0.19.3 (not yet released)
|
||||||
- fix "(null)" result string to "list" when AlbumArtist is disabled
|
- fix "(null)" result string to "list" when AlbumArtist is disabled
|
||||||
* database
|
* database
|
||||||
- upnp: fix breakage due to malformed URIs
|
- upnp: fix breakage due to malformed URIs
|
||||||
|
* input
|
||||||
|
- curl: another fix for redirected streams
|
||||||
* decoder
|
* decoder
|
||||||
- audiofile: fix crash while playing streams
|
- audiofile: fix crash while playing streams
|
||||||
- ffmpeg: support opus
|
- ffmpeg: support opus
|
||||||
|
|
|
@ -610,6 +610,10 @@ CurlInputStream::ResponseBoundary()
|
||||||
/* undo all effects of HeaderReceived() because the previous
|
/* undo all effects of HeaderReceived() because the previous
|
||||||
response was not applicable for this stream */
|
response was not applicable for this stream */
|
||||||
|
|
||||||
|
if (IsSeekPending())
|
||||||
|
/* don't update metadata while seeking */
|
||||||
|
return;
|
||||||
|
|
||||||
seekable = false;
|
seekable = false;
|
||||||
size = UNKNOWN_SIZE;
|
size = UNKNOWN_SIZE;
|
||||||
ClearMimeType();
|
ClearMimeType();
|
||||||
|
|
Loading…
Reference in New Issue