Changeset 773c6cd4e5ab885df1a5f66120cfc0c6cdbef6fd

Show
Ignore:
Timestamp:
12/15/07 17:05:45 (9 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1197734745 +0000
git-parent:

[8912cc8ca8b20500c3c5410ad8c18cd370615275]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1197734745 +0000
Message:

Conceal unsaveable and renamed options as well

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/modules.c

    r7b55830 r773c6cd  
    802802    for (unsigned i = 0, j = 0; i < size; i++) 
    803803    { 
    804         if (module->p_config[i].b_internal) 
     804        const module_config_t *item = module->p_config + i; 
     805        if (item->b_internal /* internal option */ 
     806         || item->b_unsaveable /* non-modifiable option */ 
     807         || item->psz_current /* deprecated option name */) 
    805808            continue; 
    806809 
    807810        if (config != NULL) 
    808             memcpy (config + j, module->p_config + i, sizeof (*config)); 
     811            memcpy (config + j, item, sizeof (*config)); 
    809812        *psize = j; 
    810813        j++;