| 1 |
From: Gunnar Wolf <[email protected]> |
| 2 |
Origin: vendor |
| 3 |
Bug-Debian: http://bugs.debian.org/655409 |
| 4 |
Forwarded: not needed |
| 5 |
Last-Updat: 2012-01-10 |
| 6 |
Description: Follow the pkg-perl team's module recommendation |
| 7 |
The pkg-perl team requested the use of a pure-perl drop-in |
| 8 |
reimplementation of Ogg::Vorbis::Header |
| 9 |
|
| 10 |
Index: mp3roaster/mp3roaster |
| 11 |
=================================================================== |
| 12 |
--- mp3roaster.orig/mp3roaster 2011-10-19 12:45:35.000000000 -0500 |
| 13 |
+++ mp3roaster/mp3roaster 2012-01-10 16:21:09.000000000 -0600 |
| 14 |
@@ -29,7 +29,7 @@ |
| 15 |
use File::MMagic; # Guess file type |
| 16 |
use Term::ReadKey; # Module for simple terminal control |
| 17 |
use MP3::Info; # Allows to get MP3 infos |
| 18 |
-use Ogg::Vorbis::Header; # Perl extension for Ogg Vorbis streams |
| 19 |
+use Ogg::Vorbis::Header::PurePerl; # Perl extension for Ogg Vorbis streams |
| 20 |
use Audio::FLAC::Header; # Perl extension for FLAC files |
| 21 |
use Audio::Wav # Perl extension for wav files |
| 22 |
|
| 23 |
@@ -613,12 +613,12 @@ |
| 24 |
# |
| 25 |
# We have four dependences for this function: |
| 26 |
# |
| 27 |
-# DEPENDENCY MODULE DEBIAN PACKAGE |
| 28 |
-# ------------------------------------------------- |
| 29 |
-# MPEG::MP3Info libmp3-info-perl |
| 30 |
-# Ogg::Vorbis::Header libogg-vorbis-header-perl |
| 31 |
-# Audio::FLAC::Header libaudio-flac-header-perl |
| 32 |
-# Audio::Wav libaudio-wav-perl |
| 33 |
+# DEPENDENCY MODULE DEBIAN PACKAGE |
| 34 |
+# -------------------------------------------------------------------- |
| 35 |
+# MPEG::MP3Info libmp3-info-perl |
| 36 |
+# Ogg::Vorbis::Header::PurePerl libogg-vorbis-header-pureperl-perl |
| 37 |
+# Audio::FLAC::Header libaudio-flac-header-perl |
| 38 |
+# Audio::Wav libaudio-wav-perl |
| 39 |
# |
| 40 |
sub fetch_file_time { |
| 41 |
|
| 42 |
@@ -626,7 +626,7 @@ |
| 43 |
my $sub = "FETCH_FILE_TIME"; # subroutine name |
| 44 |
|
| 45 |
my $mp3info; # get_mp3info() return |
| 46 |
- my $ogg; # holds the Ogg::Vorbis::Header object |
| 47 |
+ my $ogg; # holds the Ogg::Vorbis::Header::PurePerl object |
| 48 |
my $oggtime; # holds the ogg's length in seconds |
| 49 |
my $flac; # holds the Audio::FLAC object |
| 50 |
my $flactime; # holds the flac's length in seconds |
| 51 |
@@ -671,10 +671,10 @@ |
| 52 |
} elsif (check_file_type($file) eq "ogg") { |
| 53 |
|
| 54 |
# |
| 55 |
- # We use Ogg::Vorbis::Header here |
| 56 |
+ # We use Ogg::Vorbis::Header::PurePerl here |
| 57 |
# Example: http://search.cpan.org/src/FOOF/libvorbis-perl-0.02/test.pl |
| 58 |
# |
| 59 |
- $ogg = Ogg::Vorbis::Header->load($file); |
| 60 |
+ $ogg = Ogg::Vorbis::Header::PurePerl->load($file); |
| 61 |
$oggtime = $ogg->info("length"); |
| 62 |
|
| 63 |
$tot_secs += $oggtime + $fudge; |