Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
687db106
Commit
687db106
authored
May 01, 2015
by
Daniel Winzen
Committed by
Francois Cartegnie
May 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefer prefix operators for non-primitive types
Signed-off-by:
Francois Cartegnie
<
fcvlcdev@free.fr
>
parent
eceac9eb
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
44 additions
and
44 deletions
+44
-44
modules/codec/omxil/iomx.cpp
modules/codec/omxil/iomx.cpp
+10
-10
modules/demux/adaptative/http/HTTPConnectionManager.cpp
modules/demux/adaptative/http/HTTPConnectionManager.cpp
+2
-2
modules/demux/adaptative/logic/Representationselectors.cpp
modules/demux/adaptative/logic/Representationselectors.cpp
+4
-4
modules/demux/adaptative/playlist/BaseAdaptationSet.cpp
modules/demux/adaptative/playlist/BaseAdaptationSet.cpp
+1
-1
modules/demux/adaptative/playlist/BasePeriod.cpp
modules/demux/adaptative/playlist/BasePeriod.cpp
+3
-3
modules/demux/adaptative/playlist/Segment.cpp
modules/demux/adaptative/playlist/Segment.cpp
+3
-3
modules/demux/adaptative/playlist/SegmentInformation.cpp
modules/demux/adaptative/playlist/SegmentInformation.cpp
+4
-4
modules/demux/adaptative/playlist/SegmentList.cpp
modules/demux/adaptative/playlist/SegmentList.cpp
+1
-1
modules/demux/adaptative/playlist/SegmentTimeline.cpp
modules/demux/adaptative/playlist/SegmentTimeline.cpp
+4
-4
modules/demux/adaptative/playlist/Url.cpp
modules/demux/adaptative/playlist/Url.cpp
+1
-1
modules/demux/dash/mpd/IsoffMainParser.cpp
modules/demux/dash/mpd/IsoffMainParser.cpp
+4
-4
modules/demux/dash/mpd/MPD.cpp
modules/demux/dash/mpd/MPD.cpp
+2
-2
modules/demux/dash/xml/Node.cpp
modules/demux/dash/xml/Node.cpp
+1
-1
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+1
-1
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+1
-1
modules/gui/skins2/utils/var_list.cpp
modules/gui/skins2/utils/var_list.cpp
+2
-2
No files found.
modules/codec/omxil/iomx.cpp
View file @
687db106
...
...
@@ -98,7 +98,7 @@ void OMXCodecObserver::onMessage(const omx_message &msg)
node
->
callbacks
.
EventHandler
(
node
->
handle
,
node
->
app_data
,
msg
.
u
.
event_data
.
event
,
msg
.
u
.
event_data
.
data1
,
msg
.
u
.
event_data
.
data2
,
NULL
);
break
;
case
omx_message
:
:
EMPTY_BUFFER_DONE
:
for
(
List
<
OMX_BUFFERHEADERTYPE
*>::
iterator
it
=
node
->
buffers
.
begin
();
it
!=
node
->
buffers
.
end
();
it
++
)
{
for
(
List
<
OMX_BUFFERHEADERTYPE
*>::
iterator
it
=
node
->
buffers
.
begin
();
it
!=
node
->
buffers
.
end
();
++
it
)
{
OMXBuffer
*
info
=
(
OMXBuffer
*
)
(
*
it
)
->
pPlatformPrivate
;
if
(
msg
.
u
.
buffer_data
.
buffer
==
info
->
id
)
{
node
->
callbacks
.
EmptyBufferDone
(
node
->
handle
,
node
->
app_data
,
*
it
);
...
...
@@ -107,7 +107,7 @@ void OMXCodecObserver::onMessage(const omx_message &msg)
}
break
;
case
omx_message
:
:
FILL_BUFFER_DONE
:
for
(
List
<
OMX_BUFFERHEADERTYPE
*>::
iterator
it
=
node
->
buffers
.
begin
();
it
!=
node
->
buffers
.
end
();
it
++
)
{
for
(
List
<
OMX_BUFFERHEADERTYPE
*>::
iterator
it
=
node
->
buffers
.
begin
();
it
!=
node
->
buffers
.
end
();
++
it
)
{
OMXBuffer
*
info
=
(
OMXBuffer
*
)
(
*
it
)
->
pPlatformPrivate
;
if
(
msg
.
u
.
extended_buffer_data
.
buffer
==
info
->
id
)
{
OMX_BUFFERHEADERTYPE
*
buffer
=
*
it
;
...
...
@@ -217,7 +217,7 @@ static OMX_ERRORTYPE iomx_free_buffer(OMX_HANDLETYPE component, OMX_U32 port, OM
OMXNode
*
node
=
(
OMXNode
*
)
((
OMX_COMPONENTTYPE
*
)
component
)
->
pComponentPrivate
;
OMXBuffer
*
info
=
(
OMXBuffer
*
)
buffer
->
pPlatformPrivate
;
status_t
ret
=
ctx
->
iomx
->
freeBuffer
(
node
->
node
,
port
,
info
->
id
);
for
(
List
<
OMX_BUFFERHEADERTYPE
*>::
iterator
it
=
node
->
buffers
.
begin
();
it
!=
node
->
buffers
.
end
();
it
++
)
{
for
(
List
<
OMX_BUFFERHEADERTYPE
*>::
iterator
it
=
node
->
buffers
.
begin
();
it
!=
node
->
buffers
.
end
();
++
it
)
{
if
(
buffer
==
*
it
)
{
node
->
buffers
.
erase
(
it
);
break
;
...
...
@@ -245,12 +245,12 @@ static OMX_ERRORTYPE iomx_fill_this_buffer(OMX_HANDLETYPE component, OMX_BUFFERH
static
OMX_ERRORTYPE
iomx_component_role_enum
(
OMX_HANDLETYPE
component
,
OMX_U8
*
role
,
OMX_U32
index
)
{
OMXNode
*
node
=
(
OMXNode
*
)
((
OMX_COMPONENTTYPE
*
)
component
)
->
pComponentPrivate
;
for
(
List
<
IOMX
::
ComponentInfo
>::
iterator
it
=
ctx
->
components
.
begin
();
it
!=
ctx
->
components
.
end
();
it
++
)
{
for
(
List
<
IOMX
::
ComponentInfo
>::
iterator
it
=
ctx
->
components
.
begin
();
it
!=
ctx
->
components
.
end
();
++
it
)
{
if
(
node
->
component_name
==
it
->
mName
)
{
if
(
index
>=
it
->
mRoles
.
size
())
return
OMX_ErrorNoMore
;
List
<
String8
>::
iterator
it2
=
it
->
mRoles
.
begin
();
for
(
OMX_U32
i
=
0
;
it2
!=
it
->
mRoles
.
end
()
&&
i
<
index
;
i
++
,
it2
++
)
;
for
(
OMX_U32
i
=
0
;
it2
!=
it
->
mRoles
.
end
()
&&
i
<
index
;
i
++
,
++
it2
)
;
strncpy
((
char
*
)
role
,
it2
->
string
(),
OMX_MAX_STRINGNAME_SIZE
);
if
(
it2
->
length
()
>=
OMX_MAX_STRINGNAME_SIZE
)
role
[
OMX_MAX_STRINGNAME_SIZE
-
1
]
=
'\0'
;
...
...
@@ -360,7 +360,7 @@ OMX_ERRORTYPE PREFIX(OMX_ComponentNameEnum)(OMX_STRING component_name, OMX_U32 n
return
OMX_ErrorNoMore
;
List
<
IOMX
::
ComponentInfo
>::
iterator
it
=
ctx
->
components
.
begin
();
for
(
OMX_U32
i
=
0
;
i
<
index
;
i
++
)
it
++
;
++
it
;
strncpy
(
component_name
,
it
->
mName
.
string
(),
name_length
);
component_name
[
name_length
-
1
]
=
'\0'
;
return
OMX_ErrorNone
;
...
...
@@ -368,7 +368,7 @@ OMX_ERRORTYPE PREFIX(OMX_ComponentNameEnum)(OMX_STRING component_name, OMX_U32 n
OMX_ERRORTYPE
PREFIX
(
OMX_GetRolesOfComponent
)(
OMX_STRING
component_name
,
OMX_U32
*
num_roles
,
OMX_U8
**
roles
)
{
for
(
List
<
IOMX
::
ComponentInfo
>::
iterator
it
=
ctx
->
components
.
begin
();
it
!=
ctx
->
components
.
end
();
it
++
)
{
for
(
List
<
IOMX
::
ComponentInfo
>::
iterator
it
=
ctx
->
components
.
begin
();
it
!=
ctx
->
components
.
end
();
++
it
)
{
if
(
!
strcmp
(
component_name
,
it
->
mName
.
string
()))
{
if
(
!
roles
)
{
*
num_roles
=
it
->
mRoles
.
size
();
...
...
@@ -378,7 +378,7 @@ OMX_ERRORTYPE PREFIX(OMX_GetRolesOfComponent)(OMX_STRING component_name, OMX_U32
return
OMX_ErrorInsufficientResources
;
*
num_roles
=
it
->
mRoles
.
size
();
OMX_U32
i
=
0
;
for
(
List
<
String8
>::
iterator
it2
=
it
->
mRoles
.
begin
();
it2
!=
it
->
mRoles
.
end
();
i
++
,
it2
++
)
{
for
(
List
<
String8
>::
iterator
it2
=
it
->
mRoles
.
begin
();
it2
!=
it
->
mRoles
.
end
();
i
++
,
++
it2
)
{
strncpy
((
char
*
)
roles
[
i
],
it2
->
string
(),
OMX_MAX_STRINGNAME_SIZE
);
roles
[
i
][
OMX_MAX_STRINGNAME_SIZE
-
1
]
=
'\0'
;
}
...
...
@@ -391,8 +391,8 @@ OMX_ERRORTYPE PREFIX(OMX_GetRolesOfComponent)(OMX_STRING component_name, OMX_U32
OMX_ERRORTYPE
PREFIX
(
OMX_GetComponentsOfRole
)(
OMX_STRING
role
,
OMX_U32
*
num_comps
,
OMX_U8
**
comp_names
)
{
OMX_U32
i
=
0
;
for
(
List
<
IOMX
::
ComponentInfo
>::
iterator
it
=
ctx
->
components
.
begin
();
it
!=
ctx
->
components
.
end
();
it
++
)
{
for
(
List
<
String8
>::
iterator
it2
=
it
->
mRoles
.
begin
();
it2
!=
it
->
mRoles
.
end
();
it2
++
)
{
for
(
List
<
IOMX
::
ComponentInfo
>::
iterator
it
=
ctx
->
components
.
begin
();
it
!=
ctx
->
components
.
end
();
++
it
)
{
for
(
List
<
String8
>::
iterator
it2
=
it
->
mRoles
.
begin
();
it2
!=
it
->
mRoles
.
end
();
++
it2
)
{
if
(
!
strcmp
(
it2
->
string
(),
role
))
{
if
(
comp_names
)
{
if
(
*
num_comps
<
i
)
...
...
modules/demux/adaptative/http/HTTPConnectionManager.cpp
View file @
687db106
...
...
@@ -53,14 +53,14 @@ void HTTPConnectionManager::closeAllConnections ()
void
HTTPConnectionManager
::
releaseAllConnections
()
{
std
::
vector
<
PersistentConnection
*>::
iterator
it
;
for
(
it
=
connectionPool
.
begin
();
it
!=
connectionPool
.
end
();
it
++
)
for
(
it
=
connectionPool
.
begin
();
it
!=
connectionPool
.
end
();
++
it
)
(
*
it
)
->
releaseChunk
();
}
PersistentConnection
*
HTTPConnectionManager
::
getConnectionForHost
(
const
std
::
string
&
hostname
)
{
std
::
vector
<
PersistentConnection
*>::
const_iterator
it
;
for
(
it
=
connectionPool
.
begin
();
it
!=
connectionPool
.
end
();
it
++
)
for
(
it
=
connectionPool
.
begin
();
it
!=
connectionPool
.
end
();
++
it
)
{
if
(
!
(
*
it
)
->
getHostname
().
compare
(
hostname
)
&&
(
*
it
)
->
isAvailable
())
return
*
it
;
...
...
modules/demux/adaptative/logic/Representationselectors.cpp
View file @
687db106
...
...
@@ -42,7 +42,7 @@ BaseRepresentation * RepresentationSelector::select(BasePeriod *period, Streams:
BaseRepresentation
*
best
=
NULL
;
std
::
vector
<
BaseAdaptationSet
*>::
const_iterator
adaptIt
;
for
(
adaptIt
=
adaptSets
.
begin
();
adaptIt
!=
adaptSets
.
end
();
adaptIt
++
)
for
(
adaptIt
=
adaptSets
.
begin
();
adaptIt
!=
adaptSets
.
end
();
++
adaptIt
)
{
std
::
vector
<
BaseRepresentation
*>
reps
=
(
*
adaptIt
)
->
getRepresentations
();
BaseRepresentation
*
candidate
=
select
(
reps
,
(
best
)
?
best
->
getBandwidth
()
:
0
,
bitrate
);
...
...
@@ -67,11 +67,11 @@ BaseRepresentation * RepresentationSelector::select(BasePeriod *period, Streams:
/* subset matching WxH */
std
::
vector
<
BaseAdaptationSet
*>
adaptSets
=
period
->
getAdaptationSets
(
type
);
std
::
vector
<
BaseAdaptationSet
*>::
const_iterator
adaptIt
;
for
(
adaptIt
=
adaptSets
.
begin
();
adaptIt
!=
adaptSets
.
end
();
adaptIt
++
)
for
(
adaptIt
=
adaptSets
.
begin
();
adaptIt
!=
adaptSets
.
end
();
++
adaptIt
)
{
std
::
vector
<
BaseRepresentation
*>
reps
=
(
*
adaptIt
)
->
getRepresentations
();
std
::
vector
<
BaseRepresentation
*>::
const_iterator
repIt
;
for
(
repIt
=
reps
.
begin
();
repIt
!=
reps
.
end
();
repIt
++
)
for
(
repIt
=
reps
.
begin
();
repIt
!=
reps
.
end
();
++
repIt
)
{
if
((
*
repIt
)
->
getWidth
()
==
width
&&
(
*
repIt
)
->
getHeight
()
==
height
)
resMatchReps
.
push_back
(
*
repIt
);
...
...
@@ -89,7 +89,7 @@ BaseRepresentation * RepresentationSelector::select(std::vector<BaseRepresentati
{
BaseRepresentation
*
candidate
=
NULL
,
*
lowest
=
NULL
;
std
::
vector
<
BaseRepresentation
*>::
const_iterator
repIt
;
for
(
repIt
=
reps
.
begin
();
repIt
!=
reps
.
end
();
repIt
++
)
for
(
repIt
=
reps
.
begin
();
repIt
!=
reps
.
end
();
++
repIt
)
{
if
(
!
lowest
||
(
*
repIt
)
->
getBandwidth
()
<
lowest
->
getBandwidth
())
lowest
=
*
repIt
;
...
...
modules/demux/adaptative/playlist/BaseAdaptationSet.cpp
View file @
687db106
...
...
@@ -86,7 +86,7 @@ std::vector<std::string> BaseAdaptationSet::toString(int indent) const
text
.
append
(
"BaseAdaptationSet"
);
ret
.
push_back
(
text
);
std
::
vector
<
BaseRepresentation
*>::
const_iterator
k
;
for
(
k
=
representations
.
begin
();
k
!=
representations
.
end
();
k
++
)
for
(
k
=
representations
.
begin
();
k
!=
representations
.
end
();
++
k
)
{
std
::
vector
<
std
::
string
>
debug
=
(
*
k
)
->
toString
(
indent
+
1
);
ret
.
insert
(
ret
.
end
(),
debug
.
begin
(),
debug
.
end
());
...
...
modules/demux/adaptative/playlist/BasePeriod.cpp
View file @
687db106
...
...
@@ -59,7 +59,7 @@ const std::vector<BaseAdaptationSet*> BasePeriod::getAdaptationSets(Streams::T
{
std
::
vector
<
BaseAdaptationSet
*>
list
;
std
::
vector
<
BaseAdaptationSet
*>::
const_iterator
it
;
for
(
it
=
adaptationSets
.
begin
();
it
!=
adaptationSets
.
end
();
it
++
)
for
(
it
=
adaptationSets
.
begin
();
it
!=
adaptationSets
.
end
();
++
it
)
{
if
(
Streams
::
Stream
::
mimeToType
((
*
it
)
->
getMimeType
())
==
type
)
list
.
push_back
(
*
it
);
...
...
@@ -79,7 +79,7 @@ void BasePeriod::addAdaptationSet(BaseAdaptationSet *adaptationSet)
BaseAdaptationSet
*
BasePeriod
::
getAdaptationSet
(
Streams
::
Type
type
)
const
{
std
::
vector
<
BaseAdaptationSet
*>::
const_iterator
it
;
for
(
it
=
adaptationSets
.
begin
();
it
!=
adaptationSets
.
end
();
it
++
)
for
(
it
=
adaptationSets
.
begin
();
it
!=
adaptationSets
.
end
();
++
it
)
{
if
(
Streams
::
Stream
::
mimeToType
((
*
it
)
->
getMimeType
())
==
type
)
return
*
it
;
...
...
@@ -94,7 +94,7 @@ std::vector<std::string> BasePeriod::toString(int indent) const
text
.
append
(
"Period"
);
ret
.
push_back
(
text
);
std
::
vector
<
BaseAdaptationSet
*>::
const_iterator
k
;
for
(
k
=
adaptationSets
.
begin
();
k
!=
adaptationSets
.
end
();
k
++
)
for
(
k
=
adaptationSets
.
begin
();
k
!=
adaptationSets
.
end
();
++
k
)
{
std
::
vector
<
std
::
string
>
debug
=
(
*
k
)
->
toString
(
indent
+
1
);
ret
.
insert
(
ret
.
end
(),
debug
.
begin
(),
debug
.
end
());
...
...
modules/demux/adaptative/playlist/Segment.cpp
View file @
687db106
...
...
@@ -141,7 +141,7 @@ void Segment::addSubSegment(SubSegment *subsegment)
Segment
::~
Segment
()
{
std
::
vector
<
SubSegment
*>::
iterator
it
;
for
(
it
=
subsegments
.
begin
();
it
!=
subsegments
.
end
();
it
++
)
for
(
it
=
subsegments
.
begin
();
it
!=
subsegments
.
end
();
++
it
)
delete
*
it
;
}
...
...
@@ -161,7 +161,7 @@ std::string Segment::toString(int indent) const
{
std
::
string
ret
;
std
::
vector
<
SubSegment
*>::
const_iterator
l
;
for
(
l
=
subsegments
.
begin
();
l
!=
subsegments
.
end
();
l
++
)
for
(
l
=
subsegments
.
begin
();
l
!=
subsegments
.
end
();
++
l
)
{
ret
.
append
(
(
*
l
)
->
toString
(
indent
+
1
)
);
}
...
...
@@ -191,7 +191,7 @@ std::vector<ISegment*> Segment::subSegments()
if
(
!
subsegments
.
empty
())
{
std
::
vector
<
SubSegment
*>::
iterator
it
;
for
(
it
=
subsegments
.
begin
();
it
!=
subsegments
.
end
();
it
++
)
for
(
it
=
subsegments
.
begin
();
it
!=
subsegments
.
end
();
++
it
)
list
.
push_back
(
*
it
);
}
else
...
...
modules/demux/adaptative/playlist/SegmentInformation.cpp
View file @
687db106
...
...
@@ -94,7 +94,7 @@ vector<ISegment *> SegmentInformation::getSegments(SegmentInfoType type) const
{
std
::
vector
<
Segment
*>::
const_iterator
it
;
for
(
it
=
segmentList
->
getSegments
().
begin
();
it
!=
segmentList
->
getSegments
().
end
();
it
++
)
it
!=
segmentList
->
getSegments
().
end
();
++
it
)
{
std
::
vector
<
ISegment
*>
list
=
(
*
it
)
->
subSegments
();
retSegments
.
insert
(
retSegments
.
end
(),
list
.
begin
(),
list
.
end
()
);
...
...
@@ -227,7 +227,7 @@ void SegmentInformation::collectTimelines(std::vector<SegmentTimeline *> *timeli
timelines
->
push_back
(
mediaSegmentTemplate
->
segmentTimeline
.
Get
());
std
::
vector
<
SegmentInformation
*>::
const_iterator
it
;
for
(
it
=
childs
.
begin
();
it
!=
childs
.
end
();
it
++
)
for
(
it
=
childs
.
begin
();
it
!=
childs
.
end
();
++
it
)
(
*
it
)
->
collectTimelines
(
timelines
);
}
...
...
@@ -266,7 +266,7 @@ static void insertIntoSegment(std::vector<Segment *> &seglist, size_t start,
size_t
end
,
mtime_t
time
)
{
std
::
vector
<
Segment
*>::
iterator
segIt
;
for
(
segIt
=
seglist
.
begin
();
segIt
<
seglist
.
end
();
segIt
++
)
for
(
segIt
=
seglist
.
begin
();
segIt
<
seglist
.
end
();
++
segIt
)
{
Segment
*
segment
=
*
segIt
;
if
(
segment
->
getClassId
()
==
Segment
::
CLASSID_SEGMENT
&&
...
...
@@ -289,7 +289,7 @@ void SegmentInformation::SplitUsingIndex(std::vector<SplitPoint> &splitlist)
size_t
start
=
0
,
end
=
0
;
mtime_t
time
=
0
;
for
(
splitIt
=
splitlist
.
begin
();
splitIt
<
splitlist
.
end
();
splitIt
++
)
for
(
splitIt
=
splitlist
.
begin
();
splitIt
<
splitlist
.
end
();
++
splitIt
)
{
start
=
end
;
SplitPoint
split
=
*
splitIt
;
...
...
modules/demux/adaptative/playlist/SegmentList.cpp
View file @
687db106
...
...
@@ -35,7 +35,7 @@ SegmentList::SegmentList( SegmentInformation *parent ):
SegmentList
::~
SegmentList
()
{
std
::
vector
<
Segment
*>::
iterator
it
;
for
(
it
=
segments
.
begin
();
it
!=
segments
.
end
();
it
++
)
for
(
it
=
segments
.
begin
();
it
!=
segments
.
end
();
++
it
)
delete
(
*
it
);
}
...
...
modules/demux/adaptative/playlist/SegmentTimeline.cpp
View file @
687db106
...
...
@@ -37,7 +37,7 @@ SegmentTimeline::SegmentTimeline(TimescaleAble *parent)
SegmentTimeline
::~
SegmentTimeline
()
{
std
::
list
<
Element
*>::
iterator
it
;
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
it
++
)
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
++
it
)
delete
*
it
;
}
...
...
@@ -59,7 +59,7 @@ uint64_t SegmentTimeline::getElementNumberByScaledPlaybackTime(time_t scaled) co
{
uint64_t
count
=
0
;
std
::
list
<
Element
*>::
const_iterator
it
;
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
it
++
)
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
++
it
)
{
const
Element
*
el
=
*
it
;
for
(
uint64_t
repeat
=
1
+
el
->
r
;
repeat
;
repeat
--
)
...
...
@@ -85,7 +85,7 @@ mtime_t SegmentTimeline::getScaledPlaybackTimeByElementNumber(uint64_t number) c
number
-=
pruned
;
std
::
list
<
Element
*>::
const_iterator
it
;
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
it
++
)
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
++
it
)
{
const
Element
*
el
=
*
it
;
...
...
@@ -113,7 +113,7 @@ size_t SegmentTimeline::maxElementNumber() const
size_t
count
=
0
;
std
::
list
<
Element
*>::
const_iterator
it
;
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
it
++
)
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
++
it
)
count
+=
(
*
it
)
->
r
+
1
;
return
pruned
+
count
-
1
;
...
...
modules/demux/adaptative/playlist/Url.cpp
View file @
687db106
...
...
@@ -83,7 +83,7 @@ std::string Url::toString(size_t index, const BaseRepresentation *rep) const
{
std
::
string
ret
;
std
::
vector
<
Component
>::
const_iterator
it
;
for
(
it
=
components
.
begin
();
it
!=
components
.
end
();
it
++
)
for
(
it
=
components
.
begin
();
it
!=
components
.
end
();
++
it
)
{
const
Component
*
comp
=
&
(
*
it
);
if
(
rep
)
...
...
modules/demux/dash/mpd/IsoffMainParser.cpp
View file @
687db106
...
...
@@ -125,7 +125,7 @@ void IsoffMainParser::parsePeriods(Node *root)
std
::
vector
<
Node
*>
periods
=
DOMHelper
::
getElementByTagName
(
root
,
"Period"
,
false
);
std
::
vector
<
Node
*>::
const_iterator
it
;
for
(
it
=
periods
.
begin
();
it
!=
periods
.
end
();
it
++
)
for
(
it
=
periods
.
begin
();
it
!=
periods
.
end
();
++
it
)
{
Period
*
period
=
new
(
std
::
nothrow
)
Period
(
mpd
);
if
(
!
period
)
...
...
@@ -204,7 +204,7 @@ void IsoffMainParser::setAdaptationSets (Node *periodNode, Period *period)
std
::
vector
<
Node
*>
adaptationSets
=
DOMHelper
::
getElementByTagName
(
periodNode
,
"AdaptationSet"
,
false
);
std
::
vector
<
Node
*>::
const_iterator
it
;
for
(
it
=
adaptationSets
.
begin
();
it
!=
adaptationSets
.
end
();
it
++
)
for
(
it
=
adaptationSets
.
begin
();
it
!=
adaptationSets
.
end
();
++
it
)
{
AdaptationSet
*
adaptationSet
=
new
AdaptationSet
(
period
);
if
(
!
adaptationSet
)
...
...
@@ -323,7 +323,7 @@ size_t IsoffMainParser::parseSegmentList(Node * segListNode, SegmentInformation
list
->
timescale
.
Set
(
Integer
<
uint64_t
>
(
segListNode
->
getAttributeValue
(
"timescale"
)));
std
::
vector
<
Node
*>::
const_iterator
it
;
for
(
it
=
segments
.
begin
();
it
!=
segments
.
end
();
it
++
)
for
(
it
=
segments
.
begin
();
it
!=
segments
.
end
();
++
it
)
{
Node
*
segmentURL
=
*
it
;
std
::
string
mediaUrl
=
segmentURL
->
getAttributeValue
(
"media"
);
...
...
@@ -387,7 +387,7 @@ void IsoffMainParser::parseTimeline(Node *node, MediaSegmentTemplate *templ)
{
std
::
vector
<
Node
*>
elements
=
DOMHelper
::
getElementByTagName
(
node
,
"S"
,
false
);
std
::
vector
<
Node
*>::
const_iterator
it
;
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
it
++
)
for
(
it
=
elements
.
begin
();
it
!=
elements
.
end
();
++
it
)
{
const
Node
*
s
=
*
it
;
if
(
!
s
->
hasAttribute
(
"d"
))
/* Mandatory */
...
...
modules/demux/dash/mpd/MPD.cpp
View file @
687db106
...
...
@@ -71,11 +71,11 @@ void MPD::debug()
msg_Dbg
(
stream
,
"BaseUrl=%s"
,
getUrlSegment
().
toString
().
c_str
());
std
::
vector
<
BasePeriod
*>::
const_iterator
i
;
for
(
i
=
getPeriods
().
begin
();
i
!=
getPeriods
().
end
();
i
++
)
for
(
i
=
getPeriods
().
begin
();
i
!=
getPeriods
().
end
();
++
i
)
{
std
::
vector
<
std
::
string
>
debug
=
(
*
i
)
->
toString
();
std
::
vector
<
std
::
string
>::
const_iterator
l
;
for
(
l
=
debug
.
begin
();
l
<
debug
.
end
();
l
++
)
for
(
l
=
debug
.
begin
();
l
<
debug
.
end
();
++
l
)
{
msg_Dbg
(
stream
,
"%s"
,
(
*
l
).
c_str
());
}
...
...
modules/demux/dash/xml/Node.cpp
View file @
687db106
...
...
@@ -126,7 +126,7 @@ std::vector<std::string> Node::toString(int indent) const
text
.
append
(
getName
());
ret
.
push_back
(
text
);
std
::
vector
<
Node
*>::
const_iterator
l
;
for
(
l
=
subNodes
.
begin
();
l
<
subNodes
.
end
();
l
++
)
for
(
l
=
subNodes
.
begin
();
l
<
subNodes
.
end
();
++
l
)
{
std
::
vector
<
std
::
string
>
sub
=
(
*
l
)
->
toString
(
indent
+
1
);
ret
.
insert
(
ret
.
end
(),
sub
.
begin
(),
sub
.
end
());
...
...
modules/gui/qt4/components/interface_widgets.cpp
View file @
687db106
...
...
@@ -375,7 +375,7 @@ void EasterEggBackgroundWidget::spawnFlakes()
it
=
flakes
->
erase
(
it
);
}
else
it
++
;
++
it
;
}
if
(
flakes
->
size
()
<
MAX_FLAKES
)
...
...
modules/gui/qt4/components/preferences_widgets.cpp
View file @
687db106
...
...
@@ -1262,7 +1262,7 @@ void KeySelectorControl::finish()
if
(
list
.
count
()
>=
2
)
msg_Dbg
(
p_this
,
"This is probably wrong, %s"
,
qtu
(
i
.
key
())
);
i
++
;
++
i
;
}
module_config_free
(
p_config
);
...
...
modules/gui/skins2/utils/var_list.cpp
View file @
687db106
...
...
@@ -56,12 +56,12 @@ void VarList::delSelected()
if
(
(
*
it
).
m_selected
)
{
Iterator
oldIt
=
it
;
it
++
;
++
it
;
m_list
.
erase
(
oldIt
);
}
else
{
it
++
;
++
it
;
}
}
notify
();
...
...
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