diff --git a/test/jbuf.c b/test/jbuf.c index d6373efec..41f76275c 100644 --- a/test/jbuf.c +++ b/test/jbuf.c @@ -148,8 +148,6 @@ int test_jbuf_adaptive(void) err = jbuf_alloc(&jb, 1, 10); TEST_ERR(err); - err = jbuf_set_type(jb, JBUF_ADAPTIVE); - TEST_ERR(err); for (i=0; i min reached, read first frame\n"); err = jbuf_get(jb, &hdr2, &mem); TEST_ERR(err); @@ -262,8 +260,6 @@ int test_jbuf_adaptive_video(void) err = jbuf_alloc(&jb, 1, 10); TEST_ERR(err); - err = jbuf_set_type(jb, JBUF_ADAPTIVE); - TEST_ERR(err); for (i=0; i wish */ + TEST_EQUALS(EAGAIN, err); /* n > min */ TEST_EQUALS(2, hdr2.seq); TEST_EQUALS(100, hdr2.ts); err = jbuf_get(jb, &hdr2, &mem); mem = mem_deref(mem); - TEST_EQUALS(EAGAIN, err); /* n > wish */ + TEST_EQUALS(EAGAIN, err); /* n > min */ err = jbuf_get(jb, &hdr2, &mem); mem = mem_deref(mem); - TEST_ERR(err); /* n == wish */ + TEST_ERR(err); /* n == min */ TEST_EQUALS(4, hdr2.seq); TEST_EQUALS(200, hdr2.ts);