Commit b72e4495 authored by Helen Fornazier's avatar Helen Fornazier Committed by Mauro Carvalho Chehab

media: vimc: stream: cleanup frame field from struct vimc_stream

There is no need to have the frame field in the vimc_stream struct.
Signed-off-by: default avatarHelen Koike <helen.koike@collabora.com>
Tested-by: default avatarAndré Almeida <andre.almeida@collabora.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 5efbc65f
...@@ -117,6 +117,7 @@ static int vimc_streamer_pipeline_init(struct vimc_stream *stream, ...@@ -117,6 +117,7 @@ static int vimc_streamer_pipeline_init(struct vimc_stream *stream,
static int vimc_streamer_thread(void *data) static int vimc_streamer_thread(void *data)
{ {
struct vimc_stream *stream = data; struct vimc_stream *stream = data;
u8 *frame = NULL;
int i; int i;
set_freezable(); set_freezable();
...@@ -127,12 +128,9 @@ static int vimc_streamer_thread(void *data) ...@@ -127,12 +128,9 @@ static int vimc_streamer_thread(void *data)
break; break;
for (i = stream->pipe_size - 1; i >= 0; i--) { for (i = stream->pipe_size - 1; i >= 0; i--) {
stream->frame = stream->ved_pipeline[i]->process_frame( frame = stream->ved_pipeline[i]->process_frame(
stream->ved_pipeline[i], stream->ved_pipeline[i], frame);
stream->frame); if (!frame || IS_ERR(frame))
if (!stream->frame)
break;
if (IS_ERR(stream->frame))
break; break;
} }
//wait for 60hz //wait for 60hz
......
...@@ -19,7 +19,6 @@ struct vimc_stream { ...@@ -19,7 +19,6 @@ struct vimc_stream {
struct media_pipeline pipe; struct media_pipeline pipe;
struct vimc_ent_device *ved_pipeline[VIMC_STREAMER_PIPELINE_MAX_SIZE]; struct vimc_ent_device *ved_pipeline[VIMC_STREAMER_PIPELINE_MAX_SIZE];
unsigned int pipe_size; unsigned int pipe_size;
u8 *frame;
struct task_struct *kthread; struct task_struct *kthread;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment