From 034e1edcbc7c849a601cfa15256202cc9c68027b Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Mon, 3 Jun 2013 14:39:26 -0400 Subject: [PATCH] niimaqdx: set blocksize explicitly in set_caps --- sys/niimaqdx/gstniimaqdx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/niimaqdx/gstniimaqdx.c b/sys/niimaqdx/gstniimaqdx.c index 08a0191..cd0ca6a 100644 --- a/sys/niimaqdx/gstniimaqdx.c +++ b/sys/niimaqdx/gstniimaqdx.c @@ -1069,6 +1069,9 @@ gst_niimaqdxsrc_set_caps (GstBaseSrc * bsrc, GstCaps * caps) src->dx_framesize = src->dx_row_stride * src->height; + /* TODO: test stride alignment */ + gst_base_src_set_blocksize (bsrc, src->dx_framesize); + if (src->temp_buffer) g_free (src->temp_buffer); src->temp_buffer = g_malloc (src->dx_framesize);