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
17972559
Commit
17972559
authored
May 27, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed potential segfault on error with mkv demuxer.
parent
3d356aef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
18 deletions
+24
-18
modules/demux/mkv/demux.cpp
modules/demux/mkv/demux.cpp
+24
-18
No files found.
modules/demux/mkv/demux.cpp
View file @
17972559
...
...
@@ -592,6 +592,8 @@ void demux_sys_t::InitUi()
/* FIXME hack hack hack hack FIXME */
/* Get p_input and create variable */
p_input
=
demux_GetParentInput
(
&
demuxer
);
if
(
p_input
)
{
var_Create
(
p_input
,
"x-start"
,
VLC_VAR_INTEGER
);
var_Create
(
p_input
,
"y-start"
,
VLC_VAR_INTEGER
);
var_Create
(
p_input
,
"x-end"
,
VLC_VAR_INTEGER
);
...
...
@@ -600,6 +602,7 @@ void demux_sys_t::InitUi()
var_Create
(
p_input
,
"menu-palette"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_input
,
"highlight"
,
VLC_VAR_BOOL
);
var_Create
(
p_input
,
"highlight-mutex"
,
VLC_VAR_MUTEX
);
}
/* Now create our event thread catcher */
p_ev
=
new
event_thread_t
(
&
demuxer
);
...
...
@@ -610,6 +613,8 @@ void demux_sys_t::CleanUi()
delete
p_ev
;
p_ev
=
NULL
;
if
(
p_input
)
{
var_Destroy
(
p_input
,
"highlight-mutex"
);
var_Destroy
(
p_input
,
"highlight"
);
var_Destroy
(
p_input
,
"x-start"
);
...
...
@@ -620,6 +625,7 @@ void demux_sys_t::CleanUi()
var_Destroy
(
p_input
,
"menu-palette"
);
vlc_object_release
(
p_input
);
}
msg_Dbg
(
&
demuxer
,
"Stopping the UI Hook"
);
}
...
...
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