am7xxx-play: use am7xxx_send_image_async()
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 20 Jul 2013 22:13:33 +0000 (00:13 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sat, 20 Jul 2013 22:20:06 +0000 (00:20 +0200)
Woot, this change alone doubles the frame rate :)

examples/am7xxx-play.c

index 21e5187..4506358 100644 (file)
@@ -427,7 +427,7 @@ static int am7xxx_play(const char *input_format_string,
                        fclose(file);
 #endif
 
                        fclose(file);
 #endif
 
-                       ret = am7xxx_send_image(dev,
+                       ret = am7xxx_send_image_async(dev,
                                                image_format,
                                                (output_ctx.codec_ctx)->width,
                                                (output_ctx.codec_ctx)->height,
                                                image_format,
                                                (output_ctx.codec_ctx)->width,
                                                (output_ctx.codec_ctx)->height,