Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
a4d4690c
Commit
a4d4690c
authored
Aug 20, 2014
by
Rafaël Carré
Browse files
DTV: verbose frontend status
parent
9f80126c
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/dtv/linux.c
View file @
a4d4690c
...
...
@@ -301,6 +301,23 @@ void dvb_close (dvb_device_t *d)
free
(
d
);
}
static
void
dvb_frontend_status
(
vlc_object_t
*
obj
,
fe_status_t
s
)
{
msg_Dbg
(
obj
,
"frontend status:"
);
#define S(f) \
if (s & FE_ ## f) \
msg_Dbg(obj, "\t%s", #f);
S
(
HAS_SIGNAL
);
S
(
HAS_CARRIER
);
S
(
HAS_VITERBI
);
S
(
HAS_SYNC
);
S
(
HAS_LOCK
);
S
(
TIMEDOUT
);
S
(
REINIT
);
#undef S
}
/**
* Reads TS data from the tuner.
* @return number of bytes read, 0 on EOF, -1 if no data (yet).
...
...
@@ -345,7 +362,7 @@ ssize_t dvb_read (dvb_device_t *d, void *buf, size_t len)
return
0
;
}
msg_Dbg
(
d
->
obj
,
"
frontend
status
: 0x%02X"
,
(
unsigned
)
ev
.
status
);
dvb_
frontend
_
status
(
d
->
obj
,
ev
.
status
);
}
if
(
ufd
[
0
].
revents
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment