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
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
Hide 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,14 +592,17 @@ void demux_sys_t::InitUi()
...
@@ -592,14 +592,17 @@ void demux_sys_t::InitUi()
/* FIXME hack hack hack hack FIXME */
/* FIXME hack hack hack hack FIXME */
/* Get p_input and create variable */
/* Get p_input and create variable */
p_input
=
demux_GetParentInput
(
&
demuxer
);
p_input
=
demux_GetParentInput
(
&
demuxer
);
var_Create
(
p_input
,
"x-start"
,
VLC_VAR_INTEGER
);
if
(
p_input
)
var_Create
(
p_input
,
"y-start"
,
VLC_VAR_INTEGER
);
{
var_Create
(
p_input
,
"x-end"
,
VLC_VAR_INTEGER
);
var_Create
(
p_input
,
"x-start"
,
VLC_VAR_INTEGER
);
var_Create
(
p_input
,
"y-end"
,
VLC_VAR_INTEGER
);
var_Create
(
p_input
,
"y-start"
,
VLC_VAR_INTEGER
);
var_Create
(
p_input
,
"color"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_input
,
"x-end"
,
VLC_VAR_INTEGER
);
var_Create
(
p_input
,
"menu-palette"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_input
,
"y-end"
,
VLC_VAR_INTEGER
);
var_Create
(
p_input
,
"highlight"
,
VLC_VAR_BOOL
);
var_Create
(
p_input
,
"color"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_input
,
"highlight-mutex"
,
VLC_VAR_MUTEX
);
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 */
/* Now create our event thread catcher */
p_ev
=
new
event_thread_t
(
&
demuxer
);
p_ev
=
new
event_thread_t
(
&
demuxer
);
...
@@ -610,16 +613,19 @@ void demux_sys_t::CleanUi()
...
@@ -610,16 +613,19 @@ void demux_sys_t::CleanUi()
delete
p_ev
;
delete
p_ev
;
p_ev
=
NULL
;
p_ev
=
NULL
;
var_Destroy
(
p_input
,
"highlight-mutex"
);
if
(
p_input
)
var_Destroy
(
p_input
,
"highlight"
);
{
var_Destroy
(
p_input
,
"x-start"
);
var_Destroy
(
p_input
,
"highlight-mutex"
);
var_Destroy
(
p_input
,
"x-end"
);
var_Destroy
(
p_input
,
"highlight"
);
var_Destroy
(
p_input
,
"y-start"
);
var_Destroy
(
p_input
,
"x-start"
);
var_Destroy
(
p_input
,
"y-end"
);
var_Destroy
(
p_input
,
"x-end"
);
var_Destroy
(
p_input
,
"color"
);
var_Destroy
(
p_input
,
"y-start"
);
var_Destroy
(
p_input
,
"menu-palette"
);
var_Destroy
(
p_input
,
"y-end"
);
var_Destroy
(
p_input
,
"color"
);
vlc_object_release
(
p_input
);
var_Destroy
(
p_input
,
"menu-palette"
);
vlc_object_release
(
p_input
);
}
msg_Dbg
(
&
demuxer
,
"Stopping the UI Hook"
);
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