Fix trunk building
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 4 Nov 2009 16:13:50 +0000 (16:13 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 4 Nov 2009 16:13:50 +0000 (16:13 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227614 65c4cc65-6c06-0410-ace0-fbb531ad65f3

addons/format_mp3.c

index 81d2a0d..4e71961 100644 (file)
@@ -224,7 +224,7 @@ static struct ast_frame *mp3_read(struct ast_filestream *s, int *whennext)
        p->offset += p->buflen;
        delay = p->buflen/2;
        s->fr.frametype = AST_FRAME_VOICE;
-       s->fr.subclass = AST_FORMAT_SLINEAR;
+       s->fr.subclass.codec = AST_FORMAT_SLINEAR;
        AST_FRAME_SET_BUFFER(&s->fr, s->buf, AST_FRIENDLY_OFFSET, p->buflen);
        s->fr.mallocd = 0;
        s->fr.samples = delay;