From: <li...@yo...> - 2007-05-30 15:25:07
|
# HG changeset patch # User Darren Salt <li...@yo...> # Date 1180119777 -3600 # Node ID b2645d711337d7a495700259194c3527e94374e3 # Parent ca56e5181024f510a186611c6eee307f530ab8f5 Allow error suppression. Useful for HTTP auth (xine-lib 1.2) where we still get "no plugin for this MRL". diff -r b2645d711337d7a495700259194c3527e94374e3 -r ca56e5181024f510a186611c6eee307f530ab8f5 src/player.c --- a/src/player.c Fri May 25 20:02:57 2007 +0100 +++ b/src/player.c Fri May 25 19:57:31 2007 +0100 @@ -61,8 +61,21 @@ static char *cur_mrl = NULL, * static gboolean demuxer_for_logo = TRUE; +static int play_exec_error_suppress = 0; + +void play_exec_error_suppress_next (void) +{ + ++play_exec_error_suppress; +} + static void play_exec_error (void) { + if (play_exec_error_suppress) + { + --play_exec_error_suppress; + return; + } + int error; switch (error = xine_get_error (stream)) { |