From 6c9b4d3d60563bebad18ee653a638d9e38381a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 10 Apr 2004 17:41:44 +0000 Subject: Permit (but not recommend) stream == NULL in io_helper functions. CVS patchset: 6385 CVS date: 2004/04/10 17:41:44 --- src/xine-engine/xine_interface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/xine-engine/xine_interface.c') diff --git a/src/xine-engine/xine_interface.c b/src/xine-engine/xine_interface.c index 81531cb3e..ad426580e 100644 --- a/src/xine-engine/xine_interface.c +++ b/src/xine-engine/xine_interface.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: xine_interface.c,v 1.80 2004/03/03 20:09:18 mroi Exp $ + * $Id: xine_interface.c,v 1.81 2004/04/10 17:41:44 valtri Exp $ * * convenience/abstraction layer, functions to implement * libxine's public interface @@ -868,6 +868,8 @@ int _x_message(xine_stream_t *stream, int type, ...) { "Security message:" }; + if (!stream) return 0; + if( type >= 0 && type < sizeof(std_explanation)/ sizeof(std_explanation[0]) ) { explanation = std_explanation[type]; -- cgit v1.2.3