aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoder/OpusEncoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 14:43:24 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 14:43:24 +0200
commit8e063829c426e447021050eb214a77182269602e (patch)
tree74149152cf6183ae5b30e238f9db2b0e07d1cc1e /src/encoder/OpusEncoderPlugin.cxx
parent139c6be370d8b010b010ba2e4bb6ec8a42b4fcfd (diff)
downloadmpd-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.cxx3
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;