Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
6f579ddc
Commit
6f579ddc
authored
Feb 04, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/DumpDecoderClient: allow overriding GetCommand()
parent
8e4cb321
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
DumpDecoderClient.cxx
test/DumpDecoderClient.cxx
+2
-2
DumpDecoderClient.hxx
test/DumpDecoderClient.hxx
+1
-1
No files found.
test/DumpDecoderClient.cxx
View file @
6f579ddc
...
...
@@ -101,7 +101,7 @@ DumpDecoderClient::SubmitData(gcc_unused InputStream *is,
}
gcc_unused
ssize_t
nbytes
=
write
(
STDOUT_FILENO
,
data
,
datalen
);
return
DecoderCommand
::
NONE
;
return
GetCommand
()
;
}
DecoderCommand
...
...
@@ -113,7 +113,7 @@ DumpDecoderClient::SubmitTag(gcc_unused InputStream *is,
for
(
const
auto
&
i
:
tag
)
fprintf
(
stderr
,
" %s=%s
\n
"
,
tag_item_names
[
i
.
type
],
i
.
value
);
return
DecoderCommand
::
NONE
;
return
GetCommand
()
;
}
static
void
...
...
test/DumpDecoderClient.hxx
View file @
6f579ddc
...
...
@@ -27,7 +27,7 @@
* A #DecoderClient implementation which dumps metadata to stderr and
* decoded data to stdout.
*/
class
DumpDecoderClient
final
:
public
DecoderClient
{
class
DumpDecoderClient
:
public
DecoderClient
{
bool
initialized
=
false
;
uint16_t
prev_kbit_rate
=
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