From d2dd101b8fef0b0ccae35b7c6b9c0fc678649fb4 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 9 Sep 2017 17:46:07 +0200 Subject: rbuf handle ack fixed --- code/core/rbuf_send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/core/rbuf_send.c b/code/core/rbuf_send.c index 323596f..bc1c1b9 100644 --- a/code/core/rbuf_send.c +++ b/code/core/rbuf_send.c @@ -82,7 +82,7 @@ ssize_t ecp_rbuf_handle_ack(ECPConnection *conn, ecp_seq_t seq, unsigned char mt int rv = ECP_OK; buf = conn->rbuf.send; - if (buf == NULL) return ECP_ERR; + if (buf == NULL) return ECP_OK; if (size < 0) return size; if (size < rsize) return ECP_ERR; -- cgit v1.2.3 From 2f99b87aed4d6a5934c8760f329225563698305a Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 9 Sep 2017 17:47:08 +0200 Subject: video streming test fixed --- code/test/vid/Makefile | 3 ++- code/test/vid/client.c | 1 + code/test/vid/tools.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/test/vid/Makefile b/code/test/vid/Makefile index fbdbe15..1d5ff4e 100644 --- a/code/test/vid/Makefile +++ b/code/test/vid/Makefile @@ -1,4 +1,5 @@ -LIBVPX_HOME=../libvpx +# LIBVPX_HOME=../libvpx +LIBVPX_HOME=/Users/majstor/src/libvpx CFLAGS=-D_V4L2_KERNEL_ -I/usr/src/linux-headers-$(uname -r) -I$(LIBVPX_HOME) -I../../core -I../../vconn -I../../util LDFLAGS=-L$(LIBVPX_HOME) dep=../../core/libecpcore.a ../../core/crypto/libecpcr.a ../../core/htable/libecpht.a ../../core/posix/libecptr.a ../../core/posix/libecptm.a ../../vconn/libecpvconn.a ../../util/libecputil.a ../init.o diff --git a/code/test/vid/client.c b/code/test/vid/client.c index 00b8c0a..a55eeec 100644 --- a/code/test/vid/client.c +++ b/code/test/vid/client.c @@ -93,6 +93,7 @@ int main(int argc, char *argv[]) { const char *codec_arg = "vp9"; const VpxInterface *decoder = get_vpx_decoder_by_name(codec_arg); + outfile = stdout; if (!decoder) die_codec(NULL, "Unknown input codec."); printf("Using %s\n", vpx_codec_iface_name(decoder->codec_interface())); diff --git a/code/test/vid/tools.c b/code/test/vid/tools.c index 3331670..0307ef6 100644 --- a/code/test/vid/tools.c +++ b/code/test/vid/tools.c @@ -159,5 +159,7 @@ int vpx_img_write_f(const vpx_image_t *img, FILE *file) { buf += stride; } } + + return 1; } -- cgit v1.2.3