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
9f716478
Commit
9f716478
authored
Oct 02, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: move back the SET_PCR to its previous location for the moment
add some debug for the UI hooks (for menu support)
parent
bbdd3d86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+14
-7
No files found.
modules/demux/mkv.cpp
View file @
9f716478
...
...
@@ -1926,7 +1926,7 @@ static void BlockDecode( demux_t *p_demux, KaxBlock *block, mtime_t i_pts,
}
tk
->
i_last_dts
=
p_block
->
i_dts
;
#if
0
#if
1
msg_Dbg
(
p_demux
,
"block i_dts: "
I64Fd
" / i_pts: "
I64Fd
,
p_block
->
i_dts
,
p_block
->
i_pts
);
#endif
if
(
strcmp
(
tk
->
psz_codec
,
"S_VOBSUB"
)
)
...
...
@@ -1934,11 +1934,6 @@ msg_Dbg( p_demux, "block i_dts: "I64Fd" / i_pts: "I64Fd, p_block->i_dts, p_block
p_block
->
i_length
=
i_duration
*
1000
;
}
if
(
p_sys
->
i_pts
>=
p_sys
->
i_start_pts
)
{
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_pts
);
}
es_out_Send
(
p_demux
->
out
,
tk
->
p_es
,
p_block
);
/* use time stamp only for first block */
...
...
@@ -2414,7 +2409,10 @@ int demux_sys_t::EventMouse( vlc_object_t *p_this, char const *psz_var,
event_thread_t
*
p_ev
=
(
event_thread_t
*
)
p_data
;
vlc_mutex_lock
(
&
p_ev
->
lock
);
if
(
psz_var
[
6
]
==
'c'
)
{
p_ev
->
b_clicked
=
VLC_TRUE
;
msg_Dbg
(
p_this
,
"Event Mouse: clicked"
);
}
else
if
(
psz_var
[
6
]
==
'm'
)
p_ev
->
b_moved
=
VLC_TRUE
;
vlc_mutex_unlock
(
&
p_ev
->
lock
);
...
...
@@ -2429,6 +2427,7 @@ int demux_sys_t::EventKey( vlc_object_t *p_this, char const *psz_var,
vlc_mutex_lock
(
&
p_ev
->
lock
);
p_ev
->
b_key
=
VLC_TRUE
;
vlc_mutex_unlock
(
&
p_ev
->
lock
);
msg_Dbg
(
p_this
,
"Event Key"
);
return
VLC_SUCCESS
;
}
...
...
@@ -2465,6 +2464,8 @@ int demux_sys_t::EventThread( vlc_object_t *p_this )
struct
vlc_t
::
hotkey
*
p_hotkeys
=
p_ev
->
p_vlc
->
p_hotkeys
;
int
i
,
i_action
=
-
1
;
msg_Dbg
(
p_ev
->
p_demux
,
"Handle Key Event"
);
vlc_mutex_lock
(
&
p_ev
->
lock
);
pci_t
*
pci
=
(
pci_t
*
)
&
p_sys
->
pci_packet
;
...
...
@@ -2614,6 +2615,8 @@ int demux_sys_t::EventThread( vlc_object_t *p_this )
int32_t
best
,
dist
,
d
;
int32_t
mx
,
my
,
dx
,
dy
;
msg_Dbg
(
p_ev
->
p_demux
,
"Handle Mouse Event: Mouse clicked x(%d)*y(%d)"
,
(
unsigned
)
valx
.
i_int
,
(
unsigned
)
valy
.
i_int
);
b_activated
=
VLC_TRUE
;
// get current button
best
=
0
;
...
...
@@ -3250,12 +3253,16 @@ static int Demux( demux_t *p_demux)
p_sys
->
i_pts
=
(
p_sys
->
i_chapter_time
+
block
->
GlobalTimecode
())
/
(
mtime_t
)
1000
;
if
(
p_sys
->
i_pts
>=
p_sys
->
i_start_pts
)
if
(
p_vsegment
->
UpdateCurrentToChapter
(
*
p_demux
)
)
{
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_pts
);
if
(
p_vsegment
->
UpdateCurrentToChapter
(
*
p_demux
)
)
{
i_return
=
1
;
delete
block
;
break
;
}
}
if
(
p_vsegment
->
Edition
()
&&
p_vsegment
->
Edition
()
->
b_ordered
&&
p_vsegment
->
CurrentChapter
()
==
NULL
)
{
...
...
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