From 55e777f10b3e241f2634b471e482bab230773ce0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 May 2015 23:15:52 +0200 Subject: audio: remove UNKNOWN pseudo speakers Reuse MP_SPEAKER_ID_NA for this. If all mp_chmap entries are set to NA, the channel layout has special "unknown channel layout" semantics, which are used to deal with some corner cases. --- test/chmap_sel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/chmap_sel.c') diff --git a/test/chmap_sel.c b/test/chmap_sel.c index a1eae0b6b3..3857c20511 100644 --- a/test/chmap_sel.c +++ b/test/chmap_sel.c @@ -89,9 +89,7 @@ static void test_mp_chmap_sel_fallback_reject_unknown(void **state) { struct mp_chmap b; struct mp_chmap_sel s = {0}; - a.num = 2; - a.speaker[0] = MP_SPEAKER_ID_UNKNOWN0; - a.speaker[1] = MP_SPEAKER_ID_UNKNOWN0 + 1; + mp_chmap_set_unknown(&a, 2); mp_chmap_from_str(&b, bstr0("5.1")); -- cgit v1.2.3