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
6be3c998
Commit
6be3c998
authored
Apr 05, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/Bridge: add `noexcept`
parent
8006911a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Bridge.cxx
src/decoder/Bridge.cxx
+4
-4
Bridge.hxx
src/decoder/Bridge.hxx
+4
-4
No files found.
src/decoder/Bridge.cxx
View file @
6be3c998
...
...
@@ -43,7 +43,7 @@ DecoderBridge::DecoderBridge(DecoderControl &_dc, bool _initial_seek_pending,
initial_seek_pending
(
_initial_seek_pending
),
song_tag
(
std
::
move
(
_tag
))
{}
DecoderBridge
::~
DecoderBridge
()
DecoderBridge
::~
DecoderBridge
()
noexcept
{
/* caller must flush the chunk */
assert
(
current_chunk
==
nullptr
);
...
...
@@ -114,7 +114,7 @@ DecoderBridge::GetChunk() noexcept
}
void
DecoderBridge
::
FlushChunk
()
DecoderBridge
::
FlushChunk
()
noexcept
{
assert
(
!
seeking
);
assert
(
!
initial_seek_running
);
...
...
@@ -131,7 +131,7 @@ DecoderBridge::FlushChunk()
}
bool
DecoderBridge
::
PrepareInitialSeek
()
DecoderBridge
::
PrepareInitialSeek
()
noexcept
{
assert
(
dc
.
pipe
!=
nullptr
);
...
...
@@ -193,7 +193,7 @@ DecoderBridge::LockGetVirtualCommand() noexcept
}
DecoderCommand
DecoderBridge
::
DoSendTag
(
const
Tag
&
tag
)
DecoderBridge
::
DoSendTag
(
const
Tag
&
tag
)
noexcept
{
if
(
current_chunk
!=
nullptr
)
{
/* there is a partial chunk - flush it, we want the
...
...
src/decoder/Bridge.hxx
View file @
6be3c998
...
...
@@ -109,7 +109,7 @@ public:
DecoderBridge
(
DecoderControl
&
_dc
,
bool
_initial_seek_pending
,
std
::
unique_ptr
<
Tag
>
_tag
)
noexcept
;
~
DecoderBridge
();
~
DecoderBridge
()
noexcept
;
/**
* Should be read operation be cancelled? That is the case when the
...
...
@@ -133,7 +133,7 @@ public:
*
* Caller must not lock the #DecoderControl object.
*/
void
FlushChunk
();
void
FlushChunk
()
noexcept
;
/* virtual methods from DecoderClient */
void
Ready
(
AudioFormat
audio_format
,
...
...
@@ -158,7 +158,7 @@ private:
* Checks if we need an "initial seek". If so, then the
* initial seek is prepared, and the function returns true.
*/
bool
PrepareInitialSeek
();
bool
PrepareInitialSeek
()
noexcept
;
/**
* Returns the current decoder command. May return a
...
...
@@ -172,7 +172,7 @@ private:
* Sends a #Tag as-is to the #MusicPipe. Flushes the current
* chunk (DecoderBridge::chunk) if there is one.
*/
DecoderCommand
DoSendTag
(
const
Tag
&
tag
);
DecoderCommand
DoSendTag
(
const
Tag
&
tag
)
noexcept
;
bool
UpdateStreamTag
(
InputStream
*
is
)
noexcept
;
};
...
...
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