~videolan/vlc/old-trunk

« back to all changes in this revision

Viewing changes to modules/meta_engine/folder.c

  • Committer: dionoea
  • Date: 2006-09-24 20:51:56 UTC
  • Revision ID: vcs-imports@canonical.com-20060924205156-5ab992a7edb7092a
Some more meta changes (mostly cleanup and check the i_mandatory flags)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * folder.c
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2006 the VideoLAN team
5
 
 * $Id: folder.c 16838 2006-09-24 18:43:39Z zorglub $
 
5
 * $Id: folder.c 16839 2006-09-24 20:51:56Z dionoea $
6
6
 *
7
7
 * Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
8
8
 *
67
67
    meta_engine_t *p_me = (meta_engine_t *)p_this;
68
68
    input_item_t *p_item = p_me->p_item;
69
69
    vlc_bool_t b_have_art = VLC_FALSE;
 
70
    uint32_t i_meta;
70
71
 
71
72
    if( !p_item->p_meta ) return VLC_EGENERIC;
72
73
 
123
124
        free( psz_dir );
124
125
    }
125
126
 
126
 
    return VLC_SUCCESS;
 
127
    i_meta = input_GetMetaEngineFlags( p_item->p_meta );
 
128
    p_me->i_mandatory &= ~i_meta;
 
129
    p_me->i_optional &= ~i_meta;
 
130
    if( p_me->i_mandatory )
 
131
        return VLC_EGENERIC;
 
132
    else
 
133
        return VLC_SUCCESS;
127
134
}