Commit b331a744 authored by Sam Hocevar's avatar Sam Hocevar

* modules/stream_out/rtp.c:

    + Remove SDP file when bailing out. Patch by Fabrice Ollivier.
parent c5339761
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
* Preamble * Preamble
*****************************************************************************/ *****************************************************************************/
#include <stdlib.h> #include <stdlib.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <errno.h> #include <errno.h>
...@@ -690,6 +693,13 @@ static void Close( vlc_object_t * p_this ) ...@@ -690,6 +693,13 @@ static void Close( vlc_object_t * p_this )
free( p_sys->psz_sdp ); free( p_sys->psz_sdp );
p_sys->psz_sdp = NULL; p_sys->psz_sdp = NULL;
} }
if( p_sys->b_export_sdp_file )
{
#ifdef HAVE_UNISTD_H
unlink( p_sys->psz_sdp_file );
#endif
free( p_sys->psz_sdp_file );
}
free( p_sys ); free( p_sys );
} }
......
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