1
diff -aud ../libpar2-0.2-original/par2repairer.cpp ../libpar2-0.2/par2repairer.cpp
1
diff -aud -U 5 ../libpar2-0.2-original/par2repairer.cpp ../libpar2-0.2/par2repairer.cpp
2
2
--- ../libpar2-0.2-original/par2repairer.cpp 2006-01-20 18:25:20.000000000 +0100
3
+++ ../libpar2-0.2/par2repairer.cpp 2008-02-06 12:02:53.226050300 +0100
3
+++ ../libpar2-0.2/par2repairer.cpp 2012-11-30 14:23:31.000000000 +0100
7
9
delete creatorpacket;
29
@@ -1802,11 +1803,11 @@
30
<< "\" - no data found."
25
35
- sig_done.emit(name,count,sourcefile->GetVerificationPacket()->BlockCount());
26
+ sig_done.emit(name,count, sourcefile->GetVerificationPacket() ? sourcefile->GetVerificationPacket()->BlockCount() : 0);
36
+ sig_done.emit(name,count, count>0 && sourcefile->GetVerificationPacket() ? sourcefile->GetVerificationPacket()->BlockCount() : 0);
27
37
sig_progress.emit(1000.0);
41
// Find out how much data we have found
42
diff -aud -U 5 ../libpar2-0.2-original/par2repairer.h ../libpar2-0.2/par2repairer.h
43
--- ../libpar2-0.2-original/par2repairer.h 2006-01-20 00:38:27.000000000 +0100
44
+++ ../libpar2-0.2/par2repairer.h 2012-11-30 14:24:46.000000000 +0100
46
sigc::signal<void, std::string> sig_filename;
47
sigc::signal<void, double> sig_progress;
48
sigc::signal<void, ParHeaders*> sig_headers;
49
sigc::signal<void, std::string, int, int> sig_done;
51
+ // This method allows to determine whether libpar2 includes the patches
52
+ // ("libpar2-0.2-bugfixes.patch") submitted to libpar2 project.
53
+ // Use the method in configure scripts for detection.
54
+ void BugfixesPatchVersion2() { }
57
// Steps in verifying and repairing files:
59
// Load packets from the specified file
60
bool LoadPacketsFromFile(string filename);