Browse files

Simplify render()

memcpy() just returns dest.

Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
  • Loading branch information...
1 parent 9e4f4f6 commit 1beefe5659948303fe8b88d2cc3ea475c0980373 Felipe Contreras committed May 17, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 omapfb.c
View
6 omapfb.c
@@ -254,10 +254,8 @@ render(GstBaseSink *bsink,
if (GST_BUFFER_DATA(buffer) == self->framebuffer)
return GST_FLOW_OK;
- if (memcpy(self->framebuffer, GST_BUFFER_DATA(buffer), GST_BUFFER_SIZE(buffer)))
- return GST_FLOW_OK;
-
- return GST_FLOW_ERROR;
+ memcpy(self->framebuffer, GST_BUFFER_DATA(buffer), GST_BUFFER_SIZE(buffer));
+ return GST_FLOW_OK;
}
static void

0 comments on commit 1beefe5

Please sign in to comment.