aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_rtp_multicast.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_rtp_multicast.c')
-rw-r--r--res/res_rtp_multicast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_rtp_multicast.c b/res/res_rtp_multicast.c
index a612db5e8..b58f4b36e 100644
--- a/res/res_rtp_multicast.c
+++ b/res/res_rtp_multicast.c
@@ -206,7 +206,7 @@ static int multicast_rtp_write(struct ast_rtp_instance *instance, struct ast_fra
}
/* Grab the actual payload number for when we create the RTP packet */
- if ((codec = ast_rtp_codecs_payload_code(ast_rtp_instance_get_codecs(instance), 1, frame->subclass)) < 0) {
+ if ((codec = ast_rtp_codecs_payload_code(ast_rtp_instance_get_codecs(instance), 1, frame->subclass.codec)) < 0) {
return -1;
}