Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
6e6b321a
Commit
6e6b321a
authored
Dec 28, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/dvb: Handle removal of the CAM module, and fix some kludgy
inits.
parent
ef68c415
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
14 deletions
+56
-14
modules/access/dvb/en50221.c
modules/access/dvb/en50221.c
+53
-14
modules/access/dvb/linux_dvb.c
modules/access/dvb/linux_dvb.c
+3
-0
No files found.
modules/access/dvb/en50221.c
View file @
6e6b321a
...
...
@@ -884,7 +884,7 @@ static void ApplicationInformationEnterMenu( access_t * p_access,
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
int
i_slot
=
p_sys
->
p_sessions
[
i_session_id
-
1
].
i_slot
;
msg_Dbg
(
p_access
,
"
E
ntering MMI menus on session %d"
,
i_session_id
);
msg_Dbg
(
p_access
,
"
e
ntering MMI menus on session %d"
,
i_session_id
);
APDUSend
(
p_access
,
i_session_id
,
AOT_ENTER_MENU
,
NULL
,
0
);
p_sys
->
pb_slot_mmi_expected
[
i_slot
]
=
VLC_TRUE
;
}
...
...
@@ -1824,6 +1824,7 @@ static int InitSlot( access_t * p_access, int i_slot )
continue
;
}
}
if
(
p_sys
->
pb_active_slot
[
i_slot
]
)
{
p_sys
->
i_ca_timeout
=
100000
;
...
...
@@ -1837,6 +1838,7 @@ static int InitSlot( access_t * p_access, int i_slot )
/*
* External entry points
*/
/*****************************************************************************
* en50221_Init : Initialize the CAM for en50221
*****************************************************************************/
...
...
@@ -1945,10 +1947,8 @@ int E_(en50221_Poll)( access_t * p_access )
for
(
i_slot
=
0
;
i_slot
<
p_sys
->
i_nb_slots
;
i_slot
++
)
{
uint8_t
i_tag
;
if
(
!
p_sys
->
pb_active_slot
[
i_slot
]
)
{
ca_slot_info_t
sinfo
;
sinfo
.
num
=
i_slot
;
if
(
ioctl
(
p_sys
->
i_ca_handle
,
CA_GET_SLOT_INFO
,
&
sinfo
)
!=
0
)
{
...
...
@@ -1957,16 +1957,55 @@ int E_(en50221_Poll)( access_t * p_access )
continue
;
}
if
(
sinfo
.
flags
&
CA_CI_MODULE_READY
)
if
(
!
(
sinfo
.
flags
&
CA_CI_MODULE_READY
)
)
{
msg_Dbg
(
p_access
,
"en50221_Poll: slot %d is active"
,
if
(
p_sys
->
pb_active_slot
[
i_slot
]
)
{
msg_Dbg
(
p_access
,
"en50221_Poll: slot %d has been removed"
,
i_slot
);
p_sys
->
pb_active_slot
[
i_slot
]
=
VLC_TRUE
;
p_sys
->
pb_active_slot
[
i_slot
]
=
VLC_FALSE
;
p_sys
->
pb_slot_mmi_expected
[
i_slot
]
=
VLC_FALSE
;
p_sys
->
pb_slot_mmi_undisplayed
[
i_slot
]
=
VLC_FALSE
;
/* Close all sessions for this slot. */
for
(
i_session_id
=
1
;
i_session_id
<=
MAX_SESSIONS
;
i_session_id
++
)
{
if
(
p_sys
->
p_sessions
[
i_session_id
-
1
].
i_resource_id
&&
p_sys
->
p_sessions
[
i_session_id
-
1
].
i_slot
==
i_slot
)
{
if
(
p_sys
->
p_sessions
[
i_session_id
-
1
].
pf_close
!=
NULL
)
{
p_sys
->
p_sessions
[
i_session_id
-
1
].
pf_close
(
p_access
,
i_session_id
);
}
p_sys
->
p_sessions
[
i_session_id
-
1
].
i_resource_id
=
0
;
}
}
}
else
continue
;
continue
;
}
else
if
(
!
p_sys
->
pb_active_slot
[
i_slot
]
)
{
InitSlot
(
p_access
,
i_slot
);
if
(
!
p_sys
->
pb_active_slot
[
i_slot
]
)
{
msg_Dbg
(
p_access
,
"en50221_Poll: resetting slot %d"
,
i_slot
);
if
(
ioctl
(
p_sys
->
i_ca_handle
,
CA_RESET
,
1
<<
i_slot
)
!=
0
)
{
msg_Err
(
p_access
,
"en50221_Poll: couldn't reset slot %d"
,
i_slot
);
}
continue
;
}
msg_Dbg
(
p_access
,
"en50221_Poll: slot %d is active"
,
i_slot
);
}
if
(
!
p_sys
->
pb_tc_has_data
[
i_slot
]
)
...
...
modules/access/dvb/linux_dvb.c
View file @
6e6b321a
...
...
@@ -1432,6 +1432,9 @@ int E_(CAMOpen)( access_t *p_access )
p_sys
->
i_nb_slots
=
caps
.
slot_num
;
memset
(
p_sys
->
pb_active_slot
,
0
,
sizeof
(
vlc_bool_t
)
*
MAX_CI_SLOTS
);
memset
(
p_sys
->
pb_slot_mmi_expected
,
0
,
sizeof
(
vlc_bool_t
)
*
MAX_CI_SLOTS
);
memset
(
p_sys
->
pb_slot_mmi_undisplayed
,
0
,
sizeof
(
vlc_bool_t
)
*
MAX_CI_SLOTS
);
return
E_
(
en50221_Init
)(
p_access
);
}
...
...
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