Skip to content
Browse files

Fix a possible crash

  • Loading branch information...
1 parent ebc5d25 commit 0c321c080c18a85fe2b8c83575b8f782cdf7fdd3 @andoma andoma committed Oct 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/metadata/decoration.c
View
3 src/metadata/decoration.c
@@ -476,10 +476,10 @@ video_analysis(deco_browse_t *db)
}
di = LIST_FIRST(&db->db_items_per_ct[CONTENT_VIDEO]);
- assert(di != NULL);
prop_t *x = prop_create_r(db->db_prop_model, "season");
if(season != -1 && series) {
+ assert(di != NULL);
db->db_contents_mask |= DB_CONTENTS_TV_SEASON;
prop_t *y = prop_create_r(di->di_metadata, "season");
prop_link(y, x);
@@ -493,6 +493,7 @@ video_analysis(deco_browse_t *db)
x = prop_create_r(db->db_prop_model, "series");
if(series) {
+ assert(di != NULL);
db->db_contents_mask |= DB_CONTENTS_TV_SERIES;
prop_t *y = prop_create_r(di->di_metadata, "series");
prop_link(y, x);

0 comments on commit 0c321c0

Please sign in to comment.
Something went wrong with that request. Please try again.