search for: playlist_append_directory

Displaying 2 results from an estimated 2 matches for "playlist_append_directory".

2010 Mar 01
1
adding directory contents to ogg123 playing in sorted order?
Would a patch to ogg123 for using scandir(3) and alphasort(3) instead of opendir(3) and readdir(3) in playlist_append_directory() be accepted, or are those not sufficiently portable? On Linux, _SVID_SOURCE or _BSD_SOURCE is required to use them. This shouldn't be hard to implement and I'd like very much to have directories added to the playlist in sorted order.
2002 Oct 05
2
ogg123 remote interface
...40 +290,40 @@ audio_play_arg.devices = options.devices; audio_play_arg.stat_format = stat_format_create(); - /* Add remaining arguments to playlist */ - for (i = option_index; i < argc; i++) { - if (stat(argv[i], &stat_buf) == 0) { - - if (S_ISDIR(stat_buf.st_mode)) { - if (playlist_append_directory(options.playlist, argv[i]) == 0) - fprintf(stderr, - _("Warning: Could not read directory %s.\n"), argv[i]); - } else { - playlist_append_file(options.playlist, argv[i]); - } - } else /* If we can't stat it, it might be a non-disk source */ - playlist_append_fi...