Skip to content

Commit

Permalink
lib: refuse to instantiate podcast SD
Browse files Browse the repository at this point in the history
It only works with dedicated hooks in the VLC UI at this point.
  • Loading branch information
Rémi Denis-Courmont committed Apr 23, 2013
1 parent 9168422 commit 20e97e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/media_discoverer.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,11 @@ libvlc_media_discoverer_t *
libvlc_media_discoverer_new_from_name( libvlc_instance_t * p_inst,
const char * psz_name )
{
libvlc_media_discoverer_t * p_mdis;
/* podcast SD is a hack and only works with custom playlist callbacks. */
if( !strncasecmp( psz_name, "podcast", 7 ) )
return NULL;

p_mdis = malloc(sizeof(libvlc_media_discoverer_t));
libvlc_media_discoverer_t *p_mdis = malloc(sizeof(*p_mdis));
if( unlikely(!p_mdis) )
{
libvlc_printerr( "Not enough memory" );
Expand Down

0 comments on commit 20e97e7

Please sign in to comment.