Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
ce5691fa
Commit
ce5691fa
authored
5 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Corrections to merge bugs
parent
47f18841
No related branches found
No related tags found
No related merge requests found
Pipeline
#16859
passed
5 years ago
Stage: all
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
applications/merger/src/main.cpp
+3
-1
3 additions, 1 deletion
applications/merger/src/main.cpp
components/common/cpp/src/configuration.cpp
+1
-0
1 addition, 0 deletions
components/common/cpp/src/configuration.cpp
with
4 additions
and
1 deletion
applications/merger/src/main.cpp
+
3
−
1
View file @
ce5691fa
...
@@ -45,6 +45,8 @@ int main(int argc, char **argv) {
...
@@ -45,6 +45,8 @@ int main(int argc, char **argv) {
return
-
1
;
return
-
1
;
}
}
LOG
(
INFO
)
<<
"Opening("
<<
i
<<
"): "
<<
paths
[
i
];
rs
[
i
]
=
new
ftl
::
codecs
::
Reader
(
fs
[
i
]);
rs
[
i
]
=
new
ftl
::
codecs
::
Reader
(
fs
[
i
]);
if
(
!
rs
[
i
]
->
begin
())
{
if
(
!
rs
[
i
]
->
begin
())
{
LOG
(
ERROR
)
<<
"Bad ftl file format"
;
LOG
(
ERROR
)
<<
"Bad ftl file format"
;
...
@@ -73,7 +75,7 @@ int main(int argc, char **argv) {
...
@@ -73,7 +75,7 @@ int main(int argc, char **argv) {
// FIXME: Need to truncate other stream if the following returns
// FIXME: Need to truncate other stream if the following returns
// no frames, meaning the timeshift causes this stream to run out
// no frames, meaning the timeshift causes this stream to run out
// before the main stream.
// before the main stream.
rs
[
j
]
->
read
(
spkt
.
timestamp
+
timeoff
,
[
&
out
,
&
idmap
,
&
lastid
,
j
,
r
,
stream_mask2
,
timeoff
](
const
ftl
::
codecs
::
StreamPacket
&
spkt
,
const
ftl
::
codecs
::
Packet
&
pkt
)
{
rs
[
j
]
->
read
(
spkt
.
timestamp
+
timeoff
+
1
,
[
&
out
,
&
idmap
,
&
lastid
,
j
,
r
,
stream_mask2
,
timeoff
](
const
ftl
::
codecs
::
StreamPacket
&
spkt
,
const
ftl
::
codecs
::
Packet
&
pkt
)
{
if
(((
0x1
<<
spkt
.
streamID
)
&
stream_mask2
)
==
0
)
return
;
if
(((
0x1
<<
spkt
.
streamID
)
&
stream_mask2
)
==
0
)
return
;
if
(
int
(
spkt
.
channel
)
<
32
&&
spkt
.
timestamp
<
r
->
getStartTime
()
+
timeoff
)
return
;
if
(
int
(
spkt
.
channel
)
<
32
&&
spkt
.
timestamp
<
r
->
getStartTime
()
+
timeoff
)
return
;
...
...
This diff is collapsed.
Click to expand it.
components/common/cpp/src/configuration.cpp
+
1
−
0
View file @
ce5691fa
...
@@ -584,6 +584,7 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r
...
@@ -584,6 +584,7 @@ Configurable *ftl::config::configure(int argc, char **argv, const std::string &r
vector
<
string
>
paths
;
vector
<
string
>
paths
;
while
(
argc
--
>
0
)
{
while
(
argc
--
>
0
)
{
paths
.
push_back
(
argv
[
0
]);
paths
.
push_back
(
argv
[
0
]);
argv
++
;
}
}
if
(
!
findConfiguration
(
options
[
"config"
],
paths
))
{
if
(
!
findConfiguration
(
options
[
"config"
],
paths
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment