[vlc-commits] playlist/m3u: remove unused parameter
Rémi Denis-Courmont
git at videolan.org
Wed Jun 28 22:51:21 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 28 23:50:22 2017 +0300| [b6bfce87acea65a655a8153ff229ce030de3cc63] | committer: Rémi Denis-Courmont
playlist/m3u: remove unused parameter
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6bfce87acea65a655a8153ff229ce030de3cc63
---
modules/demux/playlist/m3u.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
index c84e4a3bdd..ecd71b9e4e 100644
--- a/modules/demux/playlist/m3u.c
+++ b/modules/demux/playlist/m3u.c
@@ -42,7 +42,7 @@
*****************************************************************************/
static int ReadDir( stream_t *, input_item_node_t * );
static void parseEXTINF( char *psz_string, char **ppsz_artist, char **ppsz_name, int *pi_duration );
-static bool ContainsURL( stream_t *p_demux, const uint8_t *, ssize_t );
+static bool ContainsURL(const uint8_t *, size_t);
static char *GuessEncoding (const char *str)
{
@@ -102,7 +102,7 @@ int Import_M3U( vlc_object_t *p_this )
|| !vlc_ascii_strcasecmp(type, "application/x-mpegurl")
|| !vlc_ascii_strcasecmp(type, "audio/mpegurl")
|| !vlc_ascii_strcasecmp(type, "audio/x-mpegurl")))
- || ContainsURL(p_stream, p_peek, i_peek))
+ || ContainsURL(p_peek, i_peek))
;
else
{ /* Guess encoding */
@@ -146,7 +146,7 @@ int Import_M3U( vlc_object_t *p_this )
return VLC_SUCCESS;
}
-static bool ContainsURL( stream_t *s, const uint8_t *p_peek, ssize_t i_peek )
+static bool ContainsURL(const uint8_t *p_peek, size_t i_peek)
{
const uint8_t *p_peek_end = p_peek + i_peek;
if( i_peek < 7 )
More information about the vlc-commits
mailing list