When count is 0 the list is still allocated. Either we should not allocate one, we free it locally, or we pass it on as it. The latter is similar to the code from 6a693c27 in libvlc_media_tracklist_from_es_array().
count
libvlc_media_tracklist_from_es_array()
Introduced in 057f3ef9.