Changeset 10ca561a7fb0f5b9b76063380c6b393b384afb95
- 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
| rf2f15f4 |
r10ca561 |
|
| 74 | 74 | static bool ContainsURL( demux_t *p_demux ) |
|---|
| 75 | 75 | { |
|---|
| 76 | | uint8_t *p_peek; |
|---|
| | 76 | const uint8_t *p_peek, *p_peek_end; |
|---|
| 77 | 77 | int i_peek; |
|---|
| 78 | | uint8_t *p_peek_end; |
|---|
| 79 | 78 | |
|---|
| 80 | 79 | i_peek = stream_Peek( p_demux->s, &p_peek, 1024 ); |
|---|
| … | … | |
| 85 | 84 | { |
|---|
| 86 | 85 | /* 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 ) ) |
|---|
| 92 | 91 | { |
|---|
| 93 | 92 | return true; |
|---|