diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 14:43:24 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 14:43:24 +0200 |
commit | 8e063829c426e447021050eb214a77182269602e (patch) | |
tree | 74149152cf6183ae5b30e238f9db2b0e07d1cc1e /src/encoder/OpusEncoderPlugin.cxx | |
parent | 139c6be370d8b010b010ba2e4bb6ec8a42b4fcfd (diff) | |
download | mpd-8e063829c426e447021050eb214a77182269602e.tar.gz mpd-8e063829c426e447021050eb214a77182269602e.tar.xz mpd-8e063829c426e447021050eb214a77182269602e.zip |
encoder/{opus,vorbis}: new serial generator replacing g_random_int()
Diffstat (limited to 'src/encoder/OpusEncoderPlugin.cxx')
-rw-r--r-- | src/encoder/OpusEncoderPlugin.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/encoder/OpusEncoderPlugin.cxx b/src/encoder/OpusEncoderPlugin.cxx index 982fdd9a2..9e82cb1ee 100644 --- a/src/encoder/OpusEncoderPlugin.cxx +++ b/src/encoder/OpusEncoderPlugin.cxx @@ -20,6 +20,7 @@ #include "config.h" #include "OpusEncoderPlugin.hxx" #include "OggStream.hxx" +#include "OggSerial.hxx" #include "EncoderAPI.hxx" #include "AudioFormat.hxx" #include "ConfigError.hxx" @@ -188,7 +189,7 @@ opus_encoder_open(Encoder *_encoder, encoder->buffer_position = 0; encoder->buffer = (unsigned char *)g_malloc(encoder->buffer_size); - encoder->stream.Initialize(g_random_int()); + encoder->stream.Initialize(GenerateOggSerial()); encoder->packetno = 0; return true; |