Commit 415269b1 authored by Yann Diorcet's avatar Yann Diorcet
Browse files

Fix previous commit

parent 5b865fce
......@@ -259,7 +259,7 @@ void audio_stream_change_decoder(AudioStream *stream, int payload){
if (pt!=NULL){
MSFilter *dec=ms_filter_create_decoder(pt->mime_type);
if (dec!=NULL){
MSFilter *nextFilter = stream->decoder->outputs[0]->next;
MSFilter *nextFilter = stream->decoder->outputs[0]->next.filter;
ms_filter_unlink(stream->rtprecv, 0, stream->decoder, 0);
ms_filter_unlink(stream->decoder, 0, nextFilter, 0);
ms_filter_postprocess(stream->decoder);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment