summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-12-28 11:47:35 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-12-28 11:47:35 +0000
commita7a78b3b52923467cd3879ce2f5c9ff74662b8fa (patch)
treee8fdd6070de74298e182920c7deadacae9ef9c14
parentd2cdd80f5cceb38f9add911f289d566f85a4c186 (diff)
downloadrockbox-a7a78b3b52923467cd3879ce2f5c9ff74662b8fa.tar.gz
rockbox-a7a78b3b52923467cd3879ce2f5c9ff74662b8fa.zip
Fix warnings from r31453
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31454 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/imageviewer/jpeg/jpeg_decoder.c1
-rw-r--r--apps/plugins/pictureflow/pictureflow.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/plugins/imageviewer/jpeg/jpeg_decoder.c b/apps/plugins/imageviewer/jpeg/jpeg_decoder.c
index 3c43c5d303..0adff53788 100644
--- a/apps/plugins/imageviewer/jpeg/jpeg_decoder.c
+++ b/apps/plugins/imageviewer/jpeg/jpeg_decoder.c
@@ -1423,6 +1423,7 @@ int jpeg_decode(struct jpeg* p_jpeg, unsigned char* p_pixel[1], int downscale,
1423 else return -1; /* not supported */ 1423 else return -1; /* not supported */
1424 1424
1425 /* init bitstream, fake a restart to make it start */ 1425 /* init bitstream, fake a restart to make it start */
1426 bs.get_buffer = 0;
1426 bs.next_input_byte = p_jpeg->p_entropy_data; 1427 bs.next_input_byte = p_jpeg->p_entropy_data;
1427 bs.bits_left = 0; 1428 bs.bits_left = 0;
1428 bs.input_end = p_jpeg->p_entropy_end; 1429 bs.input_end = p_jpeg->p_entropy_end;
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index 1b9683460e..224dc81667 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -2645,7 +2645,7 @@ static void error_wait(const char *message)
2645 Main function that also contain the main plasma 2645 Main function that also contain the main plasma
2646 algorithm. 2646 algorithm.
2647 */ 2647 */
2648static int main(void) 2648static int pictureflow_main(void)
2649{ 2649{
2650 int ret; 2650 int ret;
2651 2651
@@ -2963,7 +2963,7 @@ enum plugin_status plugin_start(const void *parameter)
2963 buf = (void*)(grey_buf_used + (char*)buf); 2963 buf = (void*)(grey_buf_used + (char*)buf);
2964#endif 2964#endif
2965 2965
2966 ret = main(); 2966 ret = pictureflow_main();
2967 if ( ret == PLUGIN_OK || ret == PLUGIN_GOTO_WPS) { 2967 if ( ret == PLUGIN_OK || ret == PLUGIN_GOTO_WPS) {
2968 if (configfile_save(CONFIG_FILE, config, CONFIG_NUM_ITEMS, 2968 if (configfile_save(CONFIG_FILE, config, CONFIG_NUM_ITEMS,
2969 CONFIG_VERSION)) 2969 CONFIG_VERSION))