* access.c: Real rtsp input
*****************************************************************************
* Copyright (C) 2005 VideoLAN
- * $Id: file.c 10310 2005-03-11 22:36:40Z anil $
+ * $Id$
*
* Authors: Gildas Bazin <gbazin@videolan.org>
*
p_sys->p_header = block_New( p_access, 4096 );
p_sys->p_header->i_buffer =
rmff_dump_header( h, p_sys->p_header->p_buffer, 1024 );
+ rmff_free_header( h );
}
else
{
var_Create( p_access, "realrtsp-caching",
VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
+ if( psz_server ) free( psz_server );
return VLC_SUCCESS;
error:
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: asmrp.c,v 1.8 2004/08/27 18:34:16 miguelfreitas Exp $
+ * $Id$
*
* a parser for real's asm rules
*
p->sym_tab_num = 0;
p->sym = ASMRP_SYM_NONE;
+ p->buf = 0;
return p;
}
for (i=0; i<p->sym_tab_num; i++)
free (p->sym_tab[i].id);
+ if (p->buf) free (p->buf);
free (p);
}
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: sdpplin.c,v 1.5 2004/04/23 21:59:04 miguelfreitas Exp $
+ * $Id$
*
* sdp/sdpplin parser.
*
if( description->stream[i]->mlti_data ) free( description->stream[i]->mlti_data );
if( description->stream[i]->rmff_flags ) free( description->stream[i]->rmff_flags );
if( description->stream[i]->asm_rule_book ) free( description->stream[i]->asm_rule_book );
+ free( description->stream[i] );
}
}
- free( description->stream );
+ if( description->stream_count ) free( description->stream );
if( description->owner ) free( description->owner );
if( description->session_name ) free( description->session_name );
*****************************************************************************
* Copyright (C) 2002-2004 the xine project
* Copyright (C) 2005 VideoLAN
- * $Id: file.c 10310 2005-03-11 22:36:40Z anil $
+ * $Id$
*
* Authors: Gildas Bazin <gbazin@videolan.org>
* Adapted from xine which itself adapted it from joschkas real tools.
char *buf = malloc( strlen(answer) );
sscanf( answer, "%*s %s", buf );
if( rtsp->p_private->server ) free( rtsp->p_private->server );
- rtsp->p_private->server = strdup( buf );
- free( buf );
+ rtsp->p_private->server = buf;
}
if( !strncasecmp( answer, "Session:", 8 ) )
{
sprintf( rest,"CSeq: %u", seq );
rtsp_put( rtsp, rest );
rtsp_put( rtsp, "" );
+ free( rest );
rtsp->pf_read( rtsp->p_userdata, buffer, size );
}
else
if( s->port < 0 || s->port > 65535 ) s->port = 554;
}
+ free( mrl_ptr );
fprintf( stderr, "got mrl: %s %i %s\n", s->host, s->port, s->path );
s->s = rtsp->pf_connect( rtsp->p_userdata, s->host, s->port );
if( rtsp->p_private->mrl ) free( rtsp->p_private->mrl );
if( rtsp->p_private->session ) free( rtsp->p_private->session );
if( rtsp->p_private->user_agent ) free( rtsp->p_private->user_agent );
+ if( rtsp->p_private->server ) free( rtsp->p_private->server );
rtsp_free_answers( rtsp );
rtsp_unschedule_all( rtsp );
free( rtsp->p_private );
{
real_track_t *tk = p_sys->track[i];
- if( tk->p_frame )
- {
- block_Release( tk->p_frame );
- }
+ if( tk->p_frame ) block_Release( tk->p_frame );
+ es_format_Clean( &tk->fmt );
free( tk );
}
- if( p_sys->i_track > 0 )
- {
- free( p_sys->track );
- }
-
+ if( p_sys->i_track > 0 ) free( p_sys->track );
free( p_sys );
}
for( i = 0; i < p_sys->i_track; i++ )
{
- if( p_sys->track[i]->i_id == i_id )
- {
- tk = p_sys->track[i];
- }
+ if( p_sys->track[i]->i_id == i_id ) tk = p_sys->track[i];
}
if( tk == NULL )