Skip to content

Commit 466de28

Browse files
committed
audio_decodes: get correct ptr to control_socket
->priv_data now must be used (see also the commit ab5d2a5 from 2025-06-17)
1 parent 86a53f9 commit 466de28

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rtp/audio_decoders.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
/*
77
* Copyright (c) 2014 Fundació i2CAT, Internet I Innovació Digital a Catalunya
8-
* Copyright (c) 2012-2024 CESNET
8+
* Copyright (c) 2012-2025 CESNET
99
* All rights reserved.
1010
*
1111
* Redistribution and use in source and binary forms, with or without
@@ -272,7 +272,9 @@ void *audio_decoder_init(char *audio_channel_map, const char *audio_scale, const
272272

273273
s->audio_decompress = NULL;
274274

275-
s->control = (struct control_state *) get_module(get_root_module(parent), "control");
275+
s->control = (struct control_state *) get_module(
276+
get_root_module(parent), "control")
277+
->priv_data;
276278

277279
if (strlen(encryption) > 0) {
278280
s->dec_funcs = static_cast<const struct openssl_decrypt_info *>(load_library("openssl_decrypt",

0 commit comments

Comments
 (0)