long file name problem

This forum is about all development around libVLC.
lanamelach
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Nov 2010 13:22

long file name problem

Postby lanamelach » 11 Jul 2011 12:35

I can't play a file that has a long file name (exceeding MAX_PATH), more specifically it is located deeply in directory tree. Is there any solution for that? As a workaround I tried to set current directory descending by sub-directories (each has less than MAX_PATH characters), but it didn't help.
Last edited by lanamelach on 29 Mar 2012 12:10, edited 1 time in total.
No milk today

devildrey33
Blank Cone
Blank Cone
Posts: 11
Joined: 07 Dec 2010 17:06
Operating System: Windows & Linux
Location: Spain

Re: long file name problem

Postby devildrey33 » 11 Jul 2011 17:55

If you are using windows, try GetShortPathName API
http://www.devildrey33.es

Rémi Denis-Courmont
Developer
Developer
Posts: 15213
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: long file name problem

Postby Rémi Denis-Courmont » 11 Jul 2011 18:43

Yeah this is a limitation/bug in VLC 1.1. If you are not on Windows, it should be fixed in VLC 1.2. Not sure about Windows.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

lanamelach
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Nov 2010 13:22

Re: long file name problem

Postby lanamelach » 12 Jul 2011 08:28

Yes, I tried it on windows, but perhaps other platforms have similar problem. Thanks, GetShortPathName helped.
No milk today


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 23 guests