diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2018-01-11 10:56:14 +0100 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2018-01-11 12:57:33 +0100 |
commit | 6be2a3978d01420035dbd23ccd5ac196d374561d (patch) | |
tree | 2a792e9801a519493115ae04ea7d2a8e36eb8207 | |
parent | 96f46f5faab294d58f4584fe39cf618907c51cd6 (diff) | |
download | gst-plugins-camera-n4-6be2a3978d01420035dbd23ccd5ac196d374561d.tar.gz gst-plugins-camera-n4-6be2a3978d01420035dbd23ccd5ac196d374561d.tar.bz2 gst-plugins-camera-n4-6be2a3978d01420035dbd23ccd5ac196d374561d.zip |
Remove unneeded _camerasrc_release_device_buffer() call
p->buffer_3aa_out is only used for the primary camera, the
_camerasrc_release_device_buffer() function has always been called with
p->buffer_3aa_out == NULL and thus had no effect, so remove this redundant call.
Change-Id: I342f41da448b2fa86f55a8940d1a773be855ce97
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
-rw-r--r-- | camerasrc/src/camerasrc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/camerasrc/src/camerasrc.c b/camerasrc/src/camerasrc.c index 24003d7..be7c6da 100644 --- a/camerasrc/src/camerasrc.c +++ b/camerasrc/src/camerasrc.c @@ -2298,12 +2298,9 @@ int camerasrc_destroy_buffer(camsrc_handle_t handle) /* buffer - ta */ camsrc_warning("ta"); - if (p->format_3aa0_out.num_buffers) { + if (p->buffer_3aa_out) { _camerasrc_release_device_buffer(p->buffer_3aa_out, p->format_3aa0_out.num_buffers); p->buffer_3aa_out = NULL; - } else if (p->format_3aa1.num_buffers) { - _camerasrc_release_device_buffer(p->buffer_3aa_out, p->format_3aa1.num_buffers); - p->buffer_3aa_out = NULL; } /* buffer - isp */ |