Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
178c33b3
Commit
178c33b3
authored
Aug 21, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send an end of sequence after a still frame.
It is some sort of workaround for some DVD menu.
parent
e114bdd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
modules/access/dvdnav.c
modules/access/dvdnav.c
+12
-3
No files found.
modules/access/dvdnav.c
View file @
178c33b3
...
...
@@ -155,7 +155,7 @@ struct demux_sys_t
static
int
Control
(
demux_t
*
,
int
,
va_list
);
static
int
Demux
(
demux_t
*
);
static
int
DemuxBlock
(
demux_t
*
,
uint8_t
*
,
int
);
static
int
DemuxBlock
(
demux_t
*
,
const
uint8_t
*
,
int
);
static
void
DemuxTitles
(
demux_t
*
);
static
void
ESSubtitleUpdate
(
demux_t
*
);
...
...
@@ -603,6 +603,15 @@ static int Demux( demux_t *p_demux )
case
DVDNAV_STILL_FRAME
:
{
/* We send a dummy mpeg2 end of sequence to force still frame display */
static
const
uint8_t
buffer
[]
=
{
0x00
,
0x00
,
0x01
,
0xe0
,
0x00
,
0x07
,
0x80
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
0xB7
,
};
DemuxBlock
(
p_demux
,
buffer
,
sizeof
(
buffer
)
);
/* */
dvdnav_still_event_t
*
event
=
(
dvdnav_still_event_t
*
)
packet
;
vlc_mutex_lock
(
&
p_sys
->
p_ev
->
lock
);
if
(
!
p_sys
->
p_ev
->
b_still
)
...
...
@@ -1028,10 +1037,10 @@ static void ESSubtitleUpdate( demux_t *p_demux )
/*****************************************************************************
* DemuxBlock: demux a given block
*****************************************************************************/
static
int
DemuxBlock
(
demux_t
*
p_demux
,
uint8_t
*
pkt
,
int
i_pkt
)
static
int
DemuxBlock
(
demux_t
*
p_demux
,
const
uint8_t
*
pkt
,
int
i_pkt
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
uint8_t
*
p
=
pkt
;
const
uint8_t
*
p
=
pkt
;
while
(
p
<
&
pkt
[
i_pkt
]
)
{
...
...
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