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
7b3ba53a
Commit
7b3ba53a
authored
Aug 12, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bluray: inline blurayHandleEvents
parent
d1ad603d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
modules/access/bluray.c
modules/access/bluray.c
+7
-15
No files found.
modules/access/bluray.c
View file @
7b3ba53a
...
@@ -1323,31 +1323,24 @@ static void blurayHandleEvent( demux_t *p_demux, const BD_EVENT *e )
...
@@ -1323,31 +1323,24 @@ static void blurayHandleEvent( demux_t *p_demux, const BD_EVENT *e )
}
}
}
}
static
void
blurayHandleEvents
(
demux_t
*
p_demux
)
{
BD_EVENT
e
;
while
(
bd_get_event
(
p_demux
->
p_sys
->
bluray
,
&
e
))
{
blurayHandleEvent
(
p_demux
,
&
e
);
}
}
#define BD_TS_PACKET_SIZE (192)
#define BD_TS_PACKET_SIZE (192)
#define NB_TS_PACKETS (200)
#define NB_TS_PACKETS (200)
static
int
blurayDemux
(
demux_t
*
p_demux
)
static
int
blurayDemux
(
demux_t
*
p_demux
)
{
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
BD_EVENT
e
;
block_t
*
p_block
=
block_Alloc
(
NB_TS_PACKETS
*
(
int64_t
)
BD_TS_PACKET_SIZE
);
block_t
*
p_block
=
block_Alloc
(
NB_TS_PACKETS
*
(
int64_t
)
BD_TS_PACKET_SIZE
);
if
(
!
p_block
)
{
if
(
!
p_block
)
return
-
1
;
return
-
1
;
}
int
nread
=
-
1
;
int
nread
;
if
(
p_sys
->
b_menu
==
false
)
{
if
(
p_sys
->
b_menu
==
false
)
{
blurayHandleEvents
(
p_demux
);
while
(
bd_get_event
(
p_demux
->
p_sys
->
bluray
,
&
e
))
blurayHandleEvent
(
p_demux
,
&
e
);
nread
=
bd_read
(
p_sys
->
bluray
,
p_block
->
p_buffer
,
nread
=
bd_read
(
p_sys
->
bluray
,
p_block
->
p_buffer
,
NB_TS_PACKETS
*
BD_TS_PACKET_SIZE
);
NB_TS_PACKETS
*
BD_TS_PACKET_SIZE
);
if
(
nread
<
0
)
{
if
(
nread
<
0
)
{
...
@@ -1355,7 +1348,6 @@ static int blurayDemux(demux_t *p_demux)
...
@@ -1355,7 +1348,6 @@ static int blurayDemux(demux_t *p_demux)
return
nread
;
return
nread
;
}
}
}
else
{
}
else
{
BD_EVENT
e
;
nread
=
bd_read_ext
(
p_sys
->
bluray
,
p_block
->
p_buffer
,
nread
=
bd_read_ext
(
p_sys
->
bluray
,
p_block
->
p_buffer
,
NB_TS_PACKETS
*
BD_TS_PACKET_SIZE
,
&
e
);
NB_TS_PACKETS
*
BD_TS_PACKET_SIZE
,
&
e
);
if
(
nread
<
0
)
if
(
nread
<
0
)
...
...
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