Skip to content

Bug: SWS/IX: Import m3u/pls playlist - crash when cancelling file loading dialog #1041

Closed

Description

@nofishonfriday

m3u crash

(click image for bigger version)

Activity

  1. added a commit that references this issue on Aug 23, 2018
    4cb0276
  2. cfillion commented on Aug 23, 2018

    @cfillion
    Member

    It was also leaking the filename buffer when not cancelling...

  3. nofishonfriday commented on Aug 23, 2018

    @nofishonfriday
    CollaboratorAuthor

    Hah, you were a tad faster. 🔫 I was just about to open my fix PR when I noticed yours (missed the leaking though).,
    Thanks.

    edit:
    Scratch below, I think I misunderstood the functionality of the 'No' option.

    ===

    While at it, I found another minor quirk, when clicking 'No' in the 'Cannot find some files. Create items anyway?' dialog it creates the items anyway.

    case 7 : // No

    should be 'return' instead of 'break' in line 268 I think.
    Would you add that too to your PR ?

  4. cfillion commented on Aug 23, 2018

    @cfillion
    Member

    Oh sorry! I wasn't sure whether you wanted to fix it...

    Maybe the message box should instead say "The following files cannot be found. Create items for them anyway?" to be clearer.

  5. nofishonfriday commented on Aug 23, 2018

    @nofishonfriday
    CollaboratorAuthor

    No problem, doesn't matter to me who fixes something in the end. :)

    Maybe the message should instead say "The following files cannot be found. Create items for them anyway?" to be clearer.

    That's what I thought it should do, but here I import a playlist where files are not found, when I click 'No' it still creates the (offline) items, that's what confuses me.

    m3u test

  6. cfillion commented on Aug 24, 2018

    @cfillion
    Member

    Looks like another bug to me! I'm guessing PCM_Source_CreateFromFile used to return NULL at the time this feature was written when the file didn't exist.

  7. added a commit that references this issue on Aug 24, 2018
    e995634
  8. nofishonfriday commented on Aug 24, 2018

    @nofishonfriday
    CollaboratorAuthor

    This seems to fix I think:
    L 296:
    if(pSrc && pSrc->GetSampleRate() > 0 || includeMissing)

    edit:
    Nevermind, just saw that you pushed a fix already, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions