Mythexport doesn't call ffmpeg for OTG exports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MythExport |
Fix Released
|
Undecided
|
Unassigned | ||
mythexport (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mythexport
After selecting a recording for an OTG (On The Go) export, mythexport processes the request, but never calls ffmpeg. This is because of a but in the code around line 340:
foreach (@params){
if ($_ =~ m/starttime/) {
}
elsif ($_ =~ m/chanid/) {
$chanid = (split(
}
elsif ($_ =~ m/config/) {
$block = (split(
}
# elsif ($_ =~ m/otg/) {
# $block = (split(
# }
}
I commented out the last elsif to correct the issue, however this may cause a problem elsewhere, since I don't know what the original intent for parsing the value of otg was. With these three lines uncommented, $block is then set to "true", not the name of the configuration to use. As such, several lines just below this block of code fail to retrieve parameters from the config file, including the following:
my $args = $export_
Since the code ends up looking for "true.ffmpegArgs" instead of "Steve_
Perhaps some extra debug code should be added to exit earlier when parsing the config fails?
NOTE: my line numbers are estimates, since I added several "logdebug" lines while tracking this down.
--- /usr/bin/ mythexport- daemon 2010-04-14 21:20:42.000000000 -0400 mythexport- daemon. 647914 2010-09-26 02:18:57.862487540 -0400 /\=/,$_ ))[1]; /\=/,$_ ))[1]; /\=/,$_ ))[1];
+++ /usr/bin/
@@ -335,9 +335,9 @@
elsif ($_ =~ m/config/) {
$block = (split(
}
- elsif ($_ =~ m/otg/) {
- $block = (split(
- }
+# elsif ($_ =~ m/otg/) {
+# $block = (split(
+# }
}
my $export_cfg = new Config::Simple();