Commit b0eddd4c authored by Simon Morlat's avatar Simon Morlat

fix for windows compiler

parent 094e3f7e
......@@ -92,12 +92,14 @@ void video_stream_change_decoder(VideoStream *stream, int payload){
RtpProfile *prof=rtp_session_get_profile(session);
PayloadType *pt=rtp_profile_get_payload(prof,payload);
if (pt!=NULL){
MSFilter *dec;
if (stream->decoder!=NULL && stream->decoder->desc->enc_fmt!=NULL &&
/* same formats behind different numbers, nothing to do */
MSFilter *dec=ms_filter_create_decoder(pt->mime_type);
if (dec!=NULL){
ms_filter_unlink(stream->rtprecv, 0, stream->decoder, 0);
if (stream->tee2)
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