We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eba600f commit d691946Copy full SHA for d691946
1 file changed
engine/h2shared/snd_xmp.c
@@ -158,7 +158,13 @@ static void S_XMP_CodecCloseStream (snd_stream_t *stream)
158
159
static int S_XMP_CodecJumpToOrder (snd_stream_t *stream, int to)
160
{
161
- return xmp_set_position((xmp_context)stream->priv, to);
+ const int err = xmp_set_position((xmp_context)stream->priv, to);
162
+ switch (err) {
163
+ case -XMP_ERROR_STATE:
164
+ case -XMP_ERROR_INVALID:
165
+ return -1;
166
+ }
167
+ return 0;
168
}
169
170
static int S_XMP_CodecRewindStream (snd_stream_t *stream)
0 commit comments