Commit 84dd91ce authored by Antoine Cellerier's avatar Antoine Cellerier

gvp.c: Fix Google Video Playlist detection code.

parent 88d7f4a3
...@@ -83,7 +83,7 @@ int E_(Import_GVP)( vlc_object_t *p_this ) ...@@ -83,7 +83,7 @@ int E_(Import_GVP)( vlc_object_t *p_this )
for( i = 0; i < i_peek - (int)sizeof("gvp_version:"); i++ ) for( i = 0; i < i_peek - (int)sizeof("gvp_version:"); i++ )
{ {
if( p_peek[i] == 'g' && p_peek[i+1] == 'v' && p_peek[i+2] == 'p' && if( p_peek[i] == 'g' && p_peek[i+1] == 'v' && p_peek[i+2] == 'p' &&
!memcmp( p_peek, "gvp_version:", sizeof("gvp_version:") - 1 ) ) !memcmp( p_peek+i, "gvp_version:", sizeof("gvp_version:") - 1 ) )
{ {
b_found = VLC_TRUE; b_found = VLC_TRUE;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment