diff options
Diffstat (limited to 'apps/buffering.c')
-rwxr-xr-x[-rw-r--r--] | apps/buffering.c | 7 |
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, DEBUGF("%s(): failed to add handle\n", __func__); mutex_unlock(&llist_mutex); close(fd); + + /*warn playback.c if it is trying to buffer too large of an image*/ + if(type == TYPE_BITMAP && padded_size >= buffer_len - 64*1024) + { + return ERR_BITMAP_TOO_LARGE; + } return ERR_BUFFER_FULL; + } handle_id = h->id; |