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
bd6ddfdd
Commit
bd6ddfdd
authored
Jun 04, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvb: remove dead busy loop
parent
f4293e74
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
modules/access/dtv/en50221.c
modules/access/dtv/en50221.c
+0
-23
No files found.
modules/access/dtv/en50221.c
View file @
bd6ddfdd
...
@@ -112,7 +112,6 @@ typedef struct en50221_mmi_object_t
...
@@ -112,7 +112,6 @@ typedef struct en50221_mmi_object_t
#undef DEBUG_TPDU
#undef DEBUG_TPDU
#define HLCI_WAIT_CAM_READY 0
#define CAM_PROG_MAX MAX_PROGRAMS
#define CAM_PROG_MAX MAX_PROGRAMS
//#define CAPMT_WAIT 100 /* uncomment this for slow CAMs */
//#define CAPMT_WAIT 100 /* uncomment this for slow CAMs */
...
@@ -2052,33 +2051,11 @@ cam_t *en50221_Init( vlc_object_t *obj, int fd )
...
@@ -2052,33 +2051,11 @@ cam_t *en50221_Init( vlc_object_t *obj, int fd )
goto
error
;
goto
error
;
}
}
#if HLCI_WAIT_CAM_READY
while
(
ca_msg
.
msg
[
8
]
==
0xff
&&
ca_msg
.
msg
[
9
]
==
0xff
)
{
if
(
!
vlc_object_alive
(
obj
)
)
goto
error
;
msleep
(
1
);
msg_Dbg
(
obj
,
"CAM: please wait"
);
APDUSend
(
p_cam
,
1
,
AOT_APPLICATION_INFO_ENQ
,
NULL
,
0
);
ca_msg
.
length
=
3
;
ca_msg
.
msg
[
0
]
=
(
AOT_APPLICATION_INFO
&
0xFF0000
)
>>
16
;
ca_msg
.
msg
[
1
]
=
(
AOT_APPLICATION_INFO
&
0x00FF00
)
>>
8
;
ca_msg
.
msg
[
2
]
=
(
AOT_APPLICATION_INFO
&
0x0000FF
)
>>
0
;
memset
(
&
ca_msg
.
msg
[
3
],
0
,
253
);
if
(
ioctl
(
fd
,
CA_GET_MSG
,
&
ca_msg
)
<
0
)
{
msg_Err
(
obj
,
"en50221_Init: failed getting message"
);
goto
error
;
}
msg_Dbg
(
p_cam
->
obj
,
"en50221_Init: Got length: %d, tag: 0x%x"
,
ca_msg
.
length
,
APDUGetTag
(
ca_msg
.
msg
,
ca_msg
.
length
)
);
}
#else
if
(
ca_msg
.
msg
[
8
]
==
0xff
&&
ca_msg
.
msg
[
9
]
==
0xff
)
if
(
ca_msg
.
msg
[
8
]
==
0xff
&&
ca_msg
.
msg
[
9
]
==
0xff
)
{
{
msg_Err
(
obj
,
"CAM returns garbage as application info!"
);
msg_Err
(
obj
,
"CAM returns garbage as application info!"
);
goto
error
;
goto
error
;
}
}
#endif
msg_Dbg
(
obj
,
"found CAM %s using id 0x%x"
,
&
ca_msg
.
msg
[
12
],
msg_Dbg
(
obj
,
"found CAM %s using id 0x%x"
,
&
ca_msg
.
msg
[
12
],
(
ca_msg
.
msg
[
8
]
<<
8
)
|
ca_msg
.
msg
[
9
]
);
(
ca_msg
.
msg
[
8
]
<<
8
)
|
ca_msg
.
msg
[
9
]
);
}
}
...
...
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