Patch for FAT32 Support for MP3 Players

2008-07-15
2013-04-03
  • My MP3 player uses FAT32 and requires the .m3u file to use non-posix complaint '\'s in lieu if '/'.  I added a configuration check box/other to turn the invert feature on and off.  Totem automatically flips the slashed around so it does not seem to break totem or mplayer.

    The patch is for version 3.3.1 and the indents got removed.

    added = inserted line
    replaced = overtyped line

    grip.c line 117 added: {"non_posix_m3u_directory_paths",CFG_ENTRY_BOOL,0,&ginfo->sprefs.non_posix_m3u_directory_paths},\ grip.c line 913 added: ginfo->sprefs.non_posix_m3u_directory_paths=FALSE;

    gripcfg.c line 700 added: check=MakeCheckButton(NULL,&ginfo->sprefs.non_posix_m3u_directory_paths,
    gripcfg.c line 701 added: _("Write m3u files using non-posix compliant '\\'s"));
    gripcfg.c line 702 added: gtk_box_pack_start(GTK_BOX(vbox),check,FALSE,FALSE,0);
    gripcfg.c line 703 added: gtk_widget_show(check);
    gripcfg.c line 704 added:

    launch.h line 29 added: gboolean non_posix_m3u_directory_paths;

    rip.c line 578 added: char *non_posix_name_filter;
    rip.c line 579 added: char line_terminator[3];
    rip.c line 623 added: g_snprintf(tmp,PATH_MAX,"%s",conv_str);
    rip.c line 624 added: relnam=MakeRelative(tmp,m3unam);
    rip.c line 625 added:
    rip.c line 626 added: if(ginfo->sprefs.non_posix_m3u_directory_paths) {
    rip.c line 627 added: sprintf (line_terminator, "\r\n");
    rip.c line 628 added:
    rip.c line 629 added:
    rip.c line 630 added:
    rip.c line 631 added: for (non_posix_name_filter=conv_str; *non_posix_name_filter; non_posix_name_filter++) {
    rip.c line 631 added: if (*non_posix_name_filter == '/'){
    rip.c line 633 added: *non_posix_name_filter = '\\';
    rip.c line 634 added: }
    rip.c line 635 added: for (non_posix_name_filter=relname; *non_posix_name_filter; non_posix_name_filter++) {
    rip.c line 636 added: if (*non_posix_name_filter == '/'){
    rip.c line 637 added: *non_posix_name_filter = '\\';
    rip.c line 638 added: }
    rip.c line 639 added: }
    rip.c line 640 added: }
    rip.c line 641 added: else
    rip.c line 642 added: {
    rip.c line 643 added: sprintf (line_terminator, "\n");
    rip.c line 644 added:
    rip.c line 645 added: }
    rip.c line 646 added:
    rip.c line 648 replaced:
    rip.c line 649 replaced:
    rip.c line 650 replaced: fprintf(fp,"%s%s",relnam, line_terminator);
    rip.c line 653 replaced: fprintf(fp,"%s%s",conv_str, line_terminator);