Browse Source

doc: libvlc: use _strdup() on Windows samples

strdup() is issuing a deprecated warning with the MS SDK.

(cherry picked from commit 4bad605e3b) (edited)
edited:
- 3.0 doesn't d3d callback examples

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
cherry-pick-c5513cf9
Steve Lhomme 5 years ago
committed by Felix Paul Kühne
parent
commit
da51e70eb5
  1. 4
      doc/libvlc/win_player.c

4
doc/libvlc/win_player.c

@ -108,12 +108,12 @@ int WINAPI WinMain(HINSTANCE hInstance,
/* remove "" around the given path */
if (lpCmdLine[0] == '"')
{
file_path = strdup( lpCmdLine+1 );
file_path = _strdup( lpCmdLine+1 );
if (file_path[strlen(file_path)-1] == '"')
file_path[strlen(file_path)-1] = '\0';
}
else
file_path = strdup( lpCmdLine );
file_path = _strdup( lpCmdLine );
Context.p_libvlc = libvlc_new( 0, NULL );
p_media = libvlc_media_new_path( Context.p_libvlc, file_path );

Loading…
Cancel
Save