Core-2-Extreme / Video_player_for_3DS

Video player for 3ds
https://gbatemp.net/threads/release-video-player-for-3ds.586094
GNU General Public License v3.0
180 stars 17 forks source link

Some directories cannot be entered #49

Closed Scripter17 closed 2 years ago

Scripter17 commented 2 years ago

I'm leaving for a trip in a few hours so I copied over a bunch of stuff to watch using the Windows robocopy tool and for some reason the app won't enter the directory

It just says

Summary: FFMPEG returned NOT success

Description: av_format_open_input() failed. -2

Place: Vid/Decode thread

Error code: 0xfffffffa

Version is 1.5.0 and I'm using Windows 10 if that matters

Core-2-Extreme commented 2 years ago

Some people reported this problem, but I still couldn't reproduce it. It seems if you have many folders and files in your root directory this issue will happen. How many folders do you have in your root directory? And how many files do you have in your root directory?

Scripter17 commented 2 years ago

The 3DS SD had 17 files and 24 folders with the new folder being the 25th

Interestingly making a new folder with 3DShell and moving the contents over made it work

The folder made by robocopy has a file attribute value of 16749 (0b100000101101101) and the one made by 3dshell has a value of 16895 (0b100000111111111)

Notably the second 0 from the right in the robocopy attributes corresponds to FILE_ATTRIBUTE_DIRECTORY (0x10), which I'm pretty sure would need to be 1 to be correctly recognized

Core-2-Extreme commented 2 years ago

I used robocopy to copy files on my SD card but I can still enter that directory. What is your full command line? my command line is : robocopy C:\path\to\video\files D:\path\to\sdcard

Scripter17 commented 2 years ago

Pretty sure I just added /MIR, since I already I already had parts of it on the card

Core-2-Extreme commented 2 years ago

I added /MIR option, but still I can enter the directory.

Scripter17 commented 2 years ago

Actually it seems robocopy wasn't the issue; The folder I was copying already had a file attribute valueof 16749

Made an empty copy of the folder and put it in a zip file
test.zip
If you take the folder out it should have a file attribute value (there has GOT to be a better name) of 16749

Not entirely sure how that got like that though. It's an old folder so maybe that has something to do with it?

Core-2-Extreme commented 2 years ago

I reproduced the issues, I'll try to fix it please wait.

Core-2-Extreme commented 2 years ago

Video_player_for_3DS.zip I fixed it please confirm that it's fixed.

Scripter17 commented 2 years ago

Seems to work perfectly. Thank you so much!