Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
f16e2d34
Commit
f16e2d34
authored
Nov 22, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make audiowmark cmp return exit code 1 if no matching pattern was found.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
7124e05d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
wmget.cc
src/wmget.cc
+6
-2
No files found.
src/wmget.cc
View file @
f16e2d34
...
@@ -711,7 +711,7 @@ public:
...
@@ -711,7 +711,7 @@ public:
}
}
}
}
}
}
void
int
print_match_count
(
const
string
&
orig_pattern
)
print_match_count
(
const
string
&
orig_pattern
)
{
{
int
match_count
=
0
;
int
match_count
=
0
;
...
@@ -728,6 +728,7 @@ public:
...
@@ -728,6 +728,7 @@ public:
match_count
++
;
match_count
++
;
}
}
printf
(
"match_count %d %zd
\n
"
,
match_count
,
patterns
.
size
());
printf
(
"match_count %d %zd
\n
"
,
match_count
,
patterns
.
size
());
return
match_count
;
}
}
double
double
best_quality
()
const
best_quality
()
const
...
@@ -1228,9 +1229,12 @@ decode_and_report (const WavData& in_data, const string& orig_pattern)
...
@@ -1228,9 +1229,12 @@ decode_and_report (const WavData& in_data, const string& orig_pattern)
if
(
!
orig_pattern
.
empty
())
if
(
!
orig_pattern
.
empty
())
{
{
result_set
.
print_match_count
(
orig_pattern
);
int
match_count
=
result_set
.
print_match_count
(
orig_pattern
);
block_decoder
.
print_debug_sync
();
block_decoder
.
print_debug_sync
();
if
(
!
match_count
)
return
1
;
}
}
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment