[MPlayer-cvslog] r36756 - in trunk: help/help_mp-de.h help/help_mp-en.h help/help_mp-zh_CN.h stream/stream.c

reimar subversion at mplayerhq.hu
Sun Jan 26 19:59:15 CET 2014


Author: reimar
Date: Sun Jan 26 19:59:15 2014
New Revision: 36756

Log:
stream.c: remove pointless NULL check.

Since it currently is a fixed-size array it can never be NULL.
But even if this was changed, this check has no real value:
it should still only be possible in case of an obvious code bug
during development and the crash it would cause would be easy enough
to debug.

Modified:
   trunk/stream/stream.c

Changes in other areas also in this revision:
Modified:
   trunk/help/help_mp-de.h
   trunk/help/help_mp-en.h
   trunk/help/help_mp-zh_CN.h

Modified: trunk/stream/stream.c
==============================================================================
--- trunk/stream/stream.c	Sun Jan 26 19:19:31 2014	(r36755)
+++ trunk/stream/stream.c	Sun Jan 26 19:59:15 2014	(r36756)
@@ -226,10 +226,6 @@ stream_t* open_stream_full(const char* f
 
   for(i = 0 ; auto_open_streams[i] ; i++) {
     sinfo = auto_open_streams[i];
-    if(!sinfo->protocols) {
-      mp_msg(MSGT_OPEN,MSGL_WARN, MSGTR_StreamProtocolNULL, sinfo->name);
-      continue;
-    }
     for(j = 0 ; sinfo->protocols[j] ; j++) {
       l = strlen(sinfo->protocols[j]);
       // l == 0 => Don't do protocol matching (ie network and filenames)


More information about the MPlayer-cvslog mailing list