Opened 16 years ago
Closed 16 years ago
#4177 closed defect (fixed)
Streaming in mythweb doesn't work for files with special characters
Reported by: | anonymous | Owned by: | xris |
---|---|---|---|
Priority: | minor | Milestone: | 0.21 |
Component: | mythweb | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
I use contrib/mythrename.pl to rename recordings, this breaks streaming in mythweb if the resultant filename has spaces or other special characters. This is because the invocation of ffmpeg is a simple call to open() which invokes ffmpeg in a shell. Using the 'list form' of open fixes this by invoking ffmpeg direct.
The attached 1-line patch fixes this. This will not affect streaming for people not using mythrename.pl.
Note: my perl (v5.8.8) claims that this list form of perl isn't supported on all platforms, but is supported on all platforms supporting fork and that if you're running a Unix variant you'll be OK. I've only tested this on Linux.
Attachments (1)
Change History (8)
Changed 16 years ago by
Attachment: | stream-handler-open.patch added |
---|
comment:1 Changed 16 years ago by
Milestone: | → 0.21 |
---|
comment:2 Changed 16 years ago by
Status: | new → infoneeded_new |
---|
What happens if we quote the filename, will that work? (escaping the quote char of course...)
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | infoneeded_new → closed |
comment:4 Changed 16 years ago by
comment:5 Changed 16 years ago by
Resolution: | fixed |
---|---|
Status: | closed → new |
This commit doesn't work because of the unrecognized shell filehandle redirect.
patch to make handler.pl use list form of open to invoke ffmpeg