]> git.sesse.net Git - vlc/blobdiff - modules/access/cdda/access.c
* browsed through all code files starting with A to F and added non-blocking intf_Use...
[vlc] / modules / access / cdda / access.c
index 4c390aadc6e2c3df9e667d907517724d23febd53..3fa81698f3fb229464ddcf4ef0f895a4b8cf0646 100644 (file)
@@ -31,6 +31,7 @@
 #include "info.h"          /* headers for meta info retrieval */
 #include <vlc_playlist.h>  /* Has to come *after* cdda.h */
 #include "vlc_keys.h"
+#include <vlc_interaction.h>
 
 #include <cdio/cdio.h>
 #include <cdio/logging.h>
@@ -289,6 +290,9 @@ static block_t * CDDAReadBlocks( access_t * p_access )
     {
         msg_Err( p_access, "cannot get a new block of size: %i",
                 i_blocks * CDIO_CD_FRAMESIZE_RAW );
+        intf_UserFatal( p_access, VLC_FALSE, _("CD reading failed"), 
+                        _("VLC could not get a new block of size: %i."), 
+                        i_blocks * CDIO_CD_FRAMESIZE_RAW );
         return NULL;
     }