Do not free the priv_data field of AVStream on close (it is already
authorLuca Abeni <lucabe72@email.it>
Fri, 27 Jun 2008 11:55:25 +0000 (11:55 +0000)
committerLuca Abeni <lucabe72@email.it>
Fri, 27 Jun 2008 11:55:25 +0000 (11:55 +0000)
freed by av_close_input_stream())

Originally committed as revision 14006 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c

index b0f6396..79fa4e1 100644 (file)
@@ -842,7 +842,6 @@ static void rtsp_close_streams(RTSPState *rt)
             if (rtsp_st->dynamic_handler && rtsp_st->dynamic_protocol_context)
                 rtsp_st->dynamic_handler->close(rtsp_st->dynamic_protocol_context);
         }
-        av_free(rtsp_st);
     }
     av_free(rt->rtsp_streams);
 }