decoder/Control: throw exception on Seek() error

This commit is contained in:
Max Kellermann
2016-11-07 09:03:17 +01:00
parent 403f0f8c64
commit 4cd21f1e07
4 changed files with 18 additions and 21 deletions

View File

@@ -40,7 +40,6 @@
#undef ERROR
#endif
class Error;
class DetachedSong;
class MusicBuffer;
class MusicPipe;
@@ -367,7 +366,10 @@ public:
void Stop();
bool Seek(SongTime t, Error &error_r);
/**
* Throws #std::runtime_error on error.
*/
void Seek(SongTime t);
void Quit();