Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-camogm
Commits
b78c1115
Commit
b78c1115
authored
May 13, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more debug output
parent
21a44a87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
camogm.c
camogm.c
+2
-2
camogm_mov.c
camogm_mov.c
+2
-1
No files found.
camogm.c
View file @
b78c1115
...
@@ -685,7 +685,7 @@ int sendImageFrame(camogm_state *state)
...
@@ -685,7 +685,7 @@ int sendImageFrame(camogm_state *state)
default:
rslt
=
0
;
// do nothing
default:
rslt
=
0
;
// do nothing
}
}
if
(
rslt
)
{
if
(
rslt
)
{
D3
(
fprintf
(
debug_file
,
"sendImageFrame:12: camogm_frame_***() returned
0x%x
\n
"
,
rslt
));
D3
(
fprintf
(
debug_file
,
"sendImageFrame:12: camogm_frame_***() returned
%d
\n
"
,
rslt
));
return
rslt
;
return
rslt
;
}
}
if
(
state
->
kml_used
)
rslt
=
camogm_frame_kml
(
state
);
// will turn on state->kml_used if it can
if
(
state
->
kml_used
)
rslt
=
camogm_frame_kml
(
state
);
// will turn on state->kml_used if it can
...
@@ -1031,7 +1031,7 @@ void camogm_status(camogm_state *state, char * fn, int xml)
...
@@ -1031,7 +1031,7 @@ void camogm_status(camogm_state *state, char * fn, int xml)
fprintf
(
f
,
"greedy %s
\n
"
,
state
->
greedy
?
"yes"
:
"no"
);
fprintf
(
f
,
"greedy %s
\n
"
,
state
->
greedy
?
"yes"
:
"no"
);
fprintf
(
f
,
"ignore fps %s
\n
"
,
state
->
ignore_fps
?
"yes"
:
"no"
);
fprintf
(
f
,
"ignore fps %s
\n
"
,
state
->
ignore_fps
?
"yes"
:
"no"
);
fprintf
(
f
,
"
\n
"
);
fprintf
(
f
,
"
\n
"
);
fprintf
(
f
,
"
buffer overruns
%d
\n
"
,
state
->
last_error_code
);
fprintf
(
f
,
"
last error code
%d
\n
"
,
state
->
last_error_code
);
fprintf
(
f
,
"buffer overruns %d
\n
"
,
state
->
buf_overruns
);
fprintf
(
f
,
"buffer overruns %d
\n
"
,
state
->
buf_overruns
);
fprintf
(
f
,
"buffer minimal %d
\n
"
,
state
->
buf_min
);
fprintf
(
f
,
"buffer minimal %d
\n
"
,
state
->
buf_min
);
fprintf
(
f
,
"buffer free %d
\n
"
,
_b_free
);
fprintf
(
f
,
"buffer free %d
\n
"
,
_b_free
);
...
...
camogm_mov.c
View file @
b78c1115
...
@@ -180,7 +180,8 @@ int camogm_frame_mov(camogm_state *state)
...
@@ -180,7 +180,8 @@ int camogm_frame_mov(camogm_state *state)
iovlen
=
writev
(
state
->
ivf
,
chunks_iovec
,
(
state
->
chunk_index
)
-
1
);
iovlen
=
writev
(
state
->
ivf
,
chunks_iovec
,
(
state
->
chunk_index
)
-
1
);
if
(
iovlen
<
l
)
{
if
(
iovlen
<
l
)
{
j
=
errno
;
j
=
errno
;
D0
(
fprintf
(
debug_file
,
"writev error %d (returned %d, expected %d)
\n
"
,
j
,
iovlen
,
l
));
D0
(
fprintf
(
debug_file
,
"writev error %d (returned %d, expected %d, file descriptor %d, chn %d)
\n
"
,
j
,
iovlen
,
l
,
state
->
ivf
,
state
->
port_num
));
perror
(
strerror
(
j
));
close
(
state
->
ivf
);
close
(
state
->
ivf
);
state
->
ivf
=
-
1
;
state
->
ivf
=
-
1
;
return
-
CAMOGM_FRAME_FILE_ERR
;
return
-
CAMOGM_FRAME_FILE_ERR
;
...
...
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