]> git.sesse.net Git - vlc/blobdiff - vlc-api.pl
Fix SRTP Roll-Over-Counter handling
[vlc] / vlc-api.pl
index 247a815cbf38dcfc4e7a6cf1fdab22a365ac2e2b..0cb7d529915d02ed0be342a6ce46a20ae8414a3f 100755 (executable)
@@ -31,6 +31,7 @@ my $srcdir = $ENV{'top_srcdir'};
 # Reads to-be exported APIs
 #
 my %new_APIs;
+my $new_sym = IO::Handle->new();
 
 while (<STDIN>)
 {
@@ -43,8 +44,7 @@ while (<STDIN>)
 #
 # Write header's header
 #
-my $new_sym=IO::Handle->new();
-open $new_sym, '> vlc_symbols.h.new' or die "$!";
+open $new_sym, '> vlc_symbols.h.new' or die "vlc_symbols.h.new: $!\n";
 print { $new_sym }
        "/*\n".
        " * This file is automatically generated. DO NOT EDIT!\n".