aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-24 09:00:14 +0100
committerMax Kellermann <max@duempel.org>2014-11-24 09:00:14 +0100
commitbf15cac980fe34a06aa49072f35c67d787df9fe3 (patch)
treecedcb7f7b0e064dc60af1e4ecad6debdce0331ea /src/decoder/plugins
parent1a61b013159543f6226915c3a2c828ba1059270c (diff)
parent951bad46e0638bd13c750fa92260dd9ccf424298 (diff)
downloadmpd-bf15cac980fe34a06aa49072f35c67d787df9fe3.tar.gz
mpd-bf15cac980fe34a06aa49072f35c67d787df9fe3.tar.xz
mpd-bf15cac980fe34a06aa49072f35c67d787df9fe3.zip
Merge branch 'v0.19.x'
Diffstat (limited to 'src/decoder/plugins')
-rw-r--r--src/decoder/plugins/DsdLib.cxx4
-rw-r--r--src/decoder/plugins/OpusDecoderPlugin.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder/plugins/DsdLib.cxx b/src/decoder/plugins/DsdLib.cxx
index 5e995fed4..13f6bc846 100644
--- a/src/decoder/plugins/DsdLib.cxx
+++ b/src/decoder/plugins/DsdLib.cxx
@@ -53,7 +53,7 @@ dsdlib_skip_to(Decoder *decoder, InputStream &is,
offset_type offset)
{
if (is.IsSeekable())
- return is.Seek(offset, IgnoreError());
+ return is.LockSeek(offset, IgnoreError());
if (is.GetOffset() > offset)
return false;
@@ -72,7 +72,7 @@ dsdlib_skip(Decoder *decoder, InputStream &is,
return true;
if (is.IsSeekable())
- return is.Seek(is.GetOffset() + delta, IgnoreError());
+ return is.LockSeek(is.GetOffset() + delta, IgnoreError());
if (delta > 1024 * 1024)
/* don't skip more than one megabyte; it would be too
diff --git a/src/decoder/plugins/OpusDecoderPlugin.cxx b/src/decoder/plugins/OpusDecoderPlugin.cxx
index 25497fe8a..e14827e38 100644
--- a/src/decoder/plugins/OpusDecoderPlugin.cxx
+++ b/src/decoder/plugins/OpusDecoderPlugin.cxx
@@ -214,7 +214,7 @@ LoadEOSPacket(InputStream &is, Decoder *decoder, int serialno,
ogg_stream_clear(&os);
/* restore the previous file position */
- is.Seek(old_offset, IgnoreError());
+ is.LockSeek(old_offset, IgnoreError());
return result;
}