dlna: fix audio sentinel check
libav: compatibility issues between libav and ffmpeg

For compatibility issues we must try to get channels using the
codec->channels field if it's 0 we try using the function
av_get_channel_layout_cb_channels().