summaryrefslogtreecommitdiff
path: root/apps/buffering.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/buffering.c')
-rwxr-xr-x[-rw-r--r--]apps/buffering.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 9ffd35714c..3adbc4a6b9 100644..100755
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -999,7 +999,14 @@ int bufopen(const char *file, off_t offset, enum data_type type,
999 DEBUGF("%s(): failed to add handle\n", __func__); 999 DEBUGF("%s(): failed to add handle\n", __func__);
1000 mutex_unlock(&llist_mutex); 1000 mutex_unlock(&llist_mutex);
1001 close(fd); 1001 close(fd);
1002
1003 /*warn playback.c if it is trying to buffer too large of an image*/
1004 if(type == TYPE_BITMAP && padded_size >= buffer_len - 64*1024)
1005 {
1006 return ERR_BITMAP_TOO_LARGE;
1007 }
1002 return ERR_BUFFER_FULL; 1008 return ERR_BUFFER_FULL;
1009
1003 } 1010 }
1004 1011
1005 handle_id = h->id; 1012 handle_id = h->id;