-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Open
Description
Operating System Info
Other
Other OS
Kubuntu 23.10
OBS Studio Version
30.1.0
OBS Studio Version (Other)
No response
OBS Studio Log URL
https://obsproject.com/logs/A8fSnIT7ryAcMhXK
OBS Studio Crash Log URL
No response
Expected Behavior
If i add a folder for a slideshow they should be in alphabetically order of the filename if the random flag is not enabled
Current Behavior
The images appear in a random order (the random flag is NOT enabled)
Steps to Reproduce
- Add a slidshow
- Add a dir with many images in it
- Compare the ordering in the folder with the order the images are shown
Anything else we should know?
I'm not the C
expert but if i'm not wrong it's because the os_readdir
function doesn't sort the entries in a directory as the function readdir
doesn't guaranteed the ordering AFAIK.
See:
ent = os_readdir(dir); |
obs-studio/libobs/util/platform-nix.c
Line 539 in 5f2bb79
struct os_dirent *os_readdir(os_dir_t *dir) |
obs-studio/libobs/util/platform-nix.c
Line 546 in 5f2bb79
dir->cur_dirent = readdir(dir->dir); |
Metadata
Metadata
Assignees
Labels
No labels