From 6c31293bb1626d309d40880c33fb21125a1e79b9 Mon Sep 17 00:00:00 2001 From: Leandro Dorileo Date: Thu, 13 Feb 2014 13:17:47 -0200 Subject: [PATCH] dlna: fix audio sentinel check --- src/lib/lightmediascanner_dlna.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/lightmediascanner_dlna.c b/src/lib/lightmediascanner_dlna.c index a04d43b..0548c8e 100644 --- a/src/lib/lightmediascanner_dlna.c +++ b/src/lib/lightmediascanner_dlna.c @@ -350,7 +350,8 @@ lms_dlna_get_video_profile(struct lms_video_info *info) { static bool _audio_rule_is_sentinel(const struct lms_dlna_audio_profile *audio_rule) { - return (!audio_rule && !audio_rule->dlna_mime && !audio_rule->audio_rule); + return (!audio_rule->dlna_profile && !audio_rule->dlna_mime && + !audio_rule->audio_rule); } const struct lms_dlna_audio_profile * -- 2.7.4