diff --git a/ChangeLog b/ChangeLog index 79e8216a..dead18c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15087,3 +15087,6 @@ 2016-04-26 Fred Gleason * Fixed a bug in 'rdlibrary/edit_cart.cpp' that threw a segfault when attempting to open multiple carts simultaneously. +2016-04-26 Brian McGlynn + * Updated lib/rdcae.cpp to return error code when file does not exist + in /var/snd diff --git a/lib/rdcae.cpp b/lib/rdcae.cpp index 5c288849..e92fb982 100644 --- a/lib/rdcae.cpp +++ b/lib/rdcae.cpp @@ -147,6 +147,13 @@ bool RDCae::loadPlay(int card,QString name,int *stream,int *handle) } cae_handle[card][*stream]=*handle; cae_pos[card][*stream]=0xFFFFFFFF; + + // CAE Daemon sends back a stream of -1 if there is an issue with allocating it + // such as file missing, etc. + if(*stream < 0) { + return false; + } + return true; }