#include "cdda.h" /* private structures. Also #includes vlc things */
#include "info.h" /* headers for meta info retrieval */
#include "access.h"
-#include <vlc_playlist.h> /* Has to come *after* cdda.h */
#include "vlc_keys.h"
#include <vlc_interface.h>
if( !psz_source || !*psz_source )
{
+ free( psz_source );
/* No device/track given. Continue only when this plugin was
selected */
if( !p_this->b_force )
psz_source = var_CreateGetString( p_this, "cd-audio" );
if( !psz_source || !*psz_source )
{
+ free( psz_source );
/* Scan for a CD-ROM drive with a CD-DA in it. */
char **ppsz_drives =
cdio_get_devices_with_cap( NULL, CDIO_FS_AUDIO, false );
p_cdda = calloc( 1, sizeof(cdda_data_t) );
if( p_cdda == NULL )
{
- msg_Err( p_access, "out of memory" );
free( psz_source );
return VLC_ENOMEM;
}
}
}
}
+ free( psz_paranoia );
}
#endif
var_Create( p_access, MODULE_STRING "-caching",
VLC_VAR_INTEGER|VLC_VAR_DOINHERIT );
vlc_object_release( p_cdda->p_input );
+ free( psz_source );
return VLC_SUCCESS;
error: