Skip to content

Commit

Permalink
Suggest using the latest version of RTMPDump.
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurvideo committed Apr 10, 2010
1 parent e093159 commit 443af43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions FlashVideo/RTMPDownloader.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use IPC::Open3;
use Symbol qw(gensym);
use FlashVideo::Utils;

use constant LATEST_RTMPDUMP => 2.2;

sub download {
my ($self, $rtmp_data) = @_;

Expand Down Expand Up @@ -161,6 +163,11 @@ sub run {
} elsif($l =~ /\w/) {
print STDERR "\r" if $self->{downloaded};
info $l;

if($l =~ /^RTMPDump v([0-9.]+)/ && $1 < LATEST_RTMPDUMP) {
error "==== Using the latest version of RTMPDump (version "
. LATEST_RTMPDUMP . ") is recommended. ====";
}
}
}

Expand Down

0 comments on commit 443af43

Please sign in to comment.