Menu

#273 stdin/stdout not released when lsx_close called

closed-fixed
nobody
None
5
2021-02-12
2016-04-19
No

formats.c registers usage of stdin and stdout by sox_globals.stdin/out_in_use_by but doesn't reset that global when lsx_close is called.

That makes it impossible to run up another input or output using stdin or stdout in the same process, even atfer the first one has finished.

The attached patch fixes it, the attached python demonstrates it using pysox - without the patch it blocks, with the patch it can process multiple input files one after the other.

2 Attachments

Discussion

  • Nigel Kettlewell

    without the patch it blocks errors out with "(stdin) already in use by `audio input'"

     
  • Nigel Kettlewell

    Sample wav of silence attached.

     
  • Mans Rullgard

    Mans Rullgard - 2021-02-12
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB