Re: vdr-pictures and pic2mpg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/24/08 21:42, Stefan Wagner wrote:
> the pic2mpg script aceptis only files with lower case caracters.
> is it posible to support upper case caracters by default?
> 
> my pictures are named DSCN*.JPG and the script only acepts  DSCN*.jpg.

--- PLUGINS/src/pictures/pic2mpg        2008/02/02 11:34:43     1.2
+++ PLUGINS/src/pictures/pic2mpg        2008/02/24 22:00:18
@@ -143,7 +143,7 @@
 sub ConvertFile
 {
   my ($Pict, $Mpeg) = @_;
-  (my $Type) = $Pict =~ /\.([^\.]*)$/;
+  (my $Type) = lc($Pict) =~ /\.([^\.]*)$/;
   if (!defined $PNMCONV{$Type}) {
      return if ($Ignore);
      die "unknown file type '$Type': '$Pict'\n";


(untested).

Klaus

_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux