Changeset 10ca561a7fb0f5b9b76063380c6b393b384afb95

Show
Ignore:
Timestamp:
15/06/08 15:22:53 (4 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1213536173 +0300
git-parent:

[f2f15f46eca071e5118bd115fc298cb507872fe4]

git-author:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1213536173 +0300
Message:

Fix warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/demux/playlist/m3u.c

    rf2f15f4 r10ca561  
    7474static bool ContainsURL( demux_t *p_demux ) 
    7575{ 
    76     uint8_t *p_peek
     76    const uint8_t *p_peek, *p_peek_end
    7777    int i_peek; 
    78     uint8_t *p_peek_end; 
    7978 
    8079    i_peek = stream_Peek( p_demux->s, &p_peek, 1024 ); 
     
    8584    { 
    8685        /* One line starting with an URL is enough */ 
    87         if( !strncasecmp( p_peek, "http://", sizeof( "http://" ) - 1 ) || 
    88             !strncasecmp( p_peek, "mms://", sizeof( "mms://" ) - 1 ) || 
    89             !strncasecmp( p_peek, "rtsp://", sizeof( "rtsp://" ) - 1 ) || 
    90             !strncasecmp( p_peek, "https://", sizeof( "https://" ) - 1 ) || 
    91             !strncasecmp( p_peek, "ftp://", sizeof( "ftp://" ) - 1 ) ) 
     86        if( !strncasecmp( (const char *)p_peek, "http://", 7 ) || 
     87            !strncasecmp( (const char *)p_peek, "mms://", 6 ) || 
     88            !strncasecmp( (const char *)p_peek, "rtsp://", 7 ) || 
     89            !strncasecmp( (const char *)p_peek, "https://", 8 ) || 
     90            !strncasecmp( (const char *)p_peek, "ftp://", 6 ) ) 
    9291        { 
    9392            return true;