summaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
Diffstat (limited to 'src/input')
-rw-r--r--src/input/input_dvd.c8
-rw-r--r--src/input/input_file.c7
2 files changed, 12 insertions, 3 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c
index 7c6134240..f945f0fe2 100644
--- a/src/input/input_dvd.c
+++ b/src/input/input_dvd.c
@@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_dvd.c,v 1.140 2003/04/03 13:04:52 mroi Exp $
+ * $Id: input_dvd.c,v 1.141 2003/04/04 19:20:48 miguelfreitas Exp $
*
*/
@@ -489,6 +489,8 @@ static buf_element_t *dvd_plugin_read_block (input_plugin_t *this_gen,
if(result == DVDNAV_STATUS_ERR) {
printf("input_dvd: Error getting next block from DVD (%s)\n",
dvdnav_err_to_string(this->dvdnav));
+ xine_message(this->stream, XINE_MSG_READ_ERROR,
+ dvdnav_err_to_string(this->dvdnav), NULL);
if (block != buf->mem) dvdnav_free_cache_block(this->dvdnav, block);
buf->free_buffer(buf);
return NULL;
@@ -1625,6 +1627,10 @@ static void *init_class (xine_t *xine, void *data) {
/*
* $Log: input_dvd.c,v $
+ * Revision 1.141 2003/04/04 19:20:48 miguelfreitas
+ * add initial async error/general message reporting to frontend
+ * obs: more messages should be added
+ *
* Revision 1.140 2003/04/03 13:04:52 mroi
* not so much noise in cvs
*
diff --git a/src/input/input_file.c b/src/input/input_file.c
index a6991c74e..4ec7328db 100644
--- a/src/input/input_file.c
+++ b/src/input/input_file.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_file.c,v 1.77 2003/03/24 14:23:56 f1rmb Exp $
+ * $Id: input_file.c,v 1.78 2003/04/04 19:20:49 miguelfreitas Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -105,9 +105,12 @@ static buf_element_t *file_plugin_read_block (input_plugin_t *this_gen, fifo_buf
while (total_bytes < todo) {
num_bytes = read (this->fh, buf->mem + total_bytes, todo-total_bytes);
if (num_bytes <= 0) {
- if (num_bytes < 0)
+ if (num_bytes < 0) {
xine_log (this->stream->xine, XINE_LOG_MSG,
_("input_file: read error (%s)\n"), strerror(errno));
+ xine_message(this->stream, XINE_MSG_READ_ERROR,
+ this->mrl, NULL);
+ }
buf->free_buffer (buf);
buf = NULL;
break;