From 8e063829c426e447021050eb214a77182269602e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Oct 2013 14:43:24 +0200 Subject: encoder/{opus,vorbis}: new serial generator replacing g_random_int() --- src/encoder/OpusEncoderPlugin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/encoder/OpusEncoderPlugin.cxx') 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; -- cgit v1.2.3