Fix ffserver crash when closing the second RTP session
authorLuca Abeni <lucabe72@email.it>
Tue, 24 Apr 2007 13:28:38 +0000 (13:28 +0000)
committerLuca Abeni <lucabe72@email.it>
Tue, 24 Apr 2007 13:28:38 +0000 (13:28 +0000)
Originally committed as revision 8799 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index 71ef5bf..21292f9 100644 (file)
@@ -3185,6 +3185,7 @@ static int rtp_new_av_stream(HTTPContext *c,
                c->stream->feed->streams[c->stream->feed_streams[stream_index]],
                sizeof(AVStream));
     }
+    st->priv_data = NULL;
 
     /* build destination RTP address */
     ipaddr = inet_ntoa(dest_addr->sin_addr);