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
82a79565
Commit
82a79565
authored
Dec 26, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/InputStream: use C++11 initializers
parent
078839c7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
IcyInputStream.cxx
src/input/IcyInputStream.cxx
+1
-2
IcyInputStream.hxx
src/input/IcyInputStream.hxx
+1
-1
InputStream.hxx
src/input/InputStream.hxx
+5
-7
RewindInputPlugin.cxx
src/input/plugins/RewindInputPlugin.cxx
+2
-3
No files found.
src/input/IcyInputStream.cxx
View file @
82a79565
...
@@ -22,8 +22,7 @@
...
@@ -22,8 +22,7 @@
#include "tag/Tag.hxx"
#include "tag/Tag.hxx"
IcyInputStream
::
IcyInputStream
(
InputStream
*
_input
)
IcyInputStream
::
IcyInputStream
(
InputStream
*
_input
)
:
ProxyInputStream
(
_input
),
:
ProxyInputStream
(
_input
)
override_offset
(
0
)
{
{
}
}
...
...
src/input/IcyInputStream.hxx
View file @
82a79565
...
@@ -44,7 +44,7 @@ class IcyInputStream final : public ProxyInputStream {
...
@@ -44,7 +44,7 @@ class IcyInputStream final : public ProxyInputStream {
*/
*/
std
::
unique_ptr
<
Tag
>
icy_tag
;
std
::
unique_ptr
<
Tag
>
icy_tag
;
offset_type
override_offset
;
offset_type
override_offset
=
0
;
public
:
public
:
IcyInputStream
(
InputStream
*
_input
);
IcyInputStream
(
InputStream
*
_input
);
...
...
src/input/InputStream.hxx
View file @
82a79565
...
@@ -70,24 +70,24 @@ protected:
...
@@ -70,24 +70,24 @@ protected:
* indicates whether the stream is ready for reading and
* indicates whether the stream is ready for reading and
* whether the other attributes in this struct are valid
* whether the other attributes in this struct are valid
*/
*/
bool
ready
;
bool
ready
=
false
;
/**
/**
* if true, then the stream is fully seekable
* if true, then the stream is fully seekable
*/
*/
bool
seekable
;
bool
seekable
=
false
;
static
constexpr
offset_type
UNKNOWN_SIZE
=
-
1
;
static
constexpr
offset_type
UNKNOWN_SIZE
=
-
1
;
/**
/**
* the size of the resource, or #UNKNOWN_SIZE if unknown
* the size of the resource, or #UNKNOWN_SIZE if unknown
*/
*/
offset_type
size
;
offset_type
size
=
UNKNOWN_SIZE
;
/**
/**
* the current offset within the stream
* the current offset within the stream
*/
*/
offset_type
offset
;
offset_type
offset
=
0
;
private
:
private
:
/**
/**
...
@@ -98,9 +98,7 @@ private:
...
@@ -98,9 +98,7 @@ private:
public
:
public
:
InputStream
(
const
char
*
_uri
,
Mutex
&
_mutex
,
Cond
&
_cond
)
InputStream
(
const
char
*
_uri
,
Mutex
&
_mutex
,
Cond
&
_cond
)
:
uri
(
_uri
),
:
uri
(
_uri
),
mutex
(
_mutex
),
cond
(
_cond
),
mutex
(
_mutex
),
cond
(
_cond
)
{
ready
(
false
),
seekable
(
false
),
size
(
UNKNOWN_SIZE
),
offset
(
0
)
{
assert
(
_uri
!=
nullptr
);
assert
(
_uri
!=
nullptr
);
}
}
...
...
src/input/plugins/RewindInputPlugin.cxx
View file @
82a79565
...
@@ -34,7 +34,7 @@ class RewindInputStream final : public ProxyInputStream {
...
@@ -34,7 +34,7 @@ class RewindInputStream final : public ProxyInputStream {
/**
/**
* The write/append position within the buffer.
* The write/append position within the buffer.
*/
*/
size_t
tail
;
size_t
tail
=
0
;
/**
/**
* The size of this buffer is the maximum number of bytes
* The size of this buffer is the maximum number of bytes
...
@@ -48,8 +48,7 @@ class RewindInputStream final : public ProxyInputStream {
...
@@ -48,8 +48,7 @@ class RewindInputStream final : public ProxyInputStream {
public
:
public
:
RewindInputStream
(
InputStream
*
_input
)
RewindInputStream
(
InputStream
*
_input
)
:
ProxyInputStream
(
_input
),
:
ProxyInputStream
(
_input
)
{
tail
(
0
)
{
}
}
/* virtual methods from InputStream */
/* virtual methods from InputStream */
...
...
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