Commit 4e4b362e authored by Rafaël Carré's avatar Rafaël Carré

Do not try to read metadata if it's not present

parent 79462a4b
......@@ -190,6 +190,8 @@ void MetaPanel::saveMeta()
**/
void MetaPanel::update( input_item_t *p_item )
{
if( !p_item->p_meta )
return;
char *psz_meta;
#define UPDATE_META( meta, widget ) { \
psz_meta = p_item->p_meta->psz_##meta; \
......@@ -284,6 +286,8 @@ ExtraMetaPanel::ExtraMetaPanel( QWidget *parent,
void ExtraMetaPanel::update( input_item_t *p_item )
{
vlc_meta_t *p_meta = p_item->p_meta;
if( !p_meta )
return;
QStringList tempItem;
QList<QTreeWidgetItem *> items;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment