Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash when trying to configure adapters that are already in use.
If another application has an adapter open, then la==NULL.  Skip the
adapter so that another can be configured.
  • Loading branch information
nickb937 authored and perexg committed Apr 29, 2015
1 parent 09265f0 commit 2bcf09f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/input/mpegts/linuxdvb/linuxdvb_adapter.c
Expand Up @@ -399,6 +399,10 @@ linuxdvb_adapter_add ( const char *path )
/* Relock before exit */
pthread_mutex_lock(&global_lock);

/* Adapter couldn't be opened; there's nothing to work with */
if (!la)
return;

#if DVB_VER_ATLEAST(5,5)
memset(fetypes, 0, sizeof(fetypes));
LIST_FOREACH(lfe, &la->la_frontends, lfe_link)
Expand Down

0 comments on commit 2bcf09f

Please sign in to comment.