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
1aa0aa39
Commit
1aa0aa39
authored
Jun 05, 2002
by
Stéphane Borel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*Check if p_vpar->p_vout is available before detaching it.
parent
e9de293d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
18 deletions
+21
-18
plugins/mpeg_vdec/video_parser.c
plugins/mpeg_vdec/video_parser.c
+21
-18
No files found.
plugins/mpeg_vdec/video_parser.c
View file @
1aa0aa39
...
...
@@ -2,7 +2,7 @@
* video_parser.c : video parser thread
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video_parser.c,v 1.2
3 2002/06/02 09:03:54 sam
Exp $
* $Id: video_parser.c,v 1.2
4 2002/06/05 18:01:31 stef
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
...
@@ -310,25 +310,28 @@ static void EndThread( vpar_thread_t *p_vpar )
times
(
&
cpu_usage
);
#endif
/* Release used video buffers. */
if
(
p_vpar
->
sequence
.
p_forward
!=
NULL
)
if
(
p_vpar
->
p_vout
!=
NULL
)
{
vout_UnlinkPicture
(
p_vpar
->
p_vout
,
p_vpar
->
sequence
.
p_forward
);
}
if
(
p_vpar
->
sequence
.
p_backward
!=
NULL
)
{
vout_DatePicture
(
p_vpar
->
p_vout
,
p_vpar
->
sequence
.
p_backward
,
vpar_SynchroDate
(
p_vpar
)
);
vout_UnlinkPicture
(
p_vpar
->
p_vout
,
p_vpar
->
sequence
.
p_backward
);
}
if
(
p_vpar
->
picture
.
p_picture
!=
NULL
)
{
vout_DestroyPicture
(
p_vpar
->
p_vout
,
p_vpar
->
picture
.
p_picture
);
}
/* Release used video buffers. */
if
(
p_vpar
->
sequence
.
p_forward
!=
NULL
)
{
vout_UnlinkPicture
(
p_vpar
->
p_vout
,
p_vpar
->
sequence
.
p_forward
);
}
if
(
p_vpar
->
sequence
.
p_backward
!=
NULL
)
{
vout_DatePicture
(
p_vpar
->
p_vout
,
p_vpar
->
sequence
.
p_backward
,
vpar_SynchroDate
(
p_vpar
)
);
vout_UnlinkPicture
(
p_vpar
->
p_vout
,
p_vpar
->
sequence
.
p_backward
);
}
if
(
p_vpar
->
picture
.
p_picture
!=
NULL
)
{
vout_DestroyPicture
(
p_vpar
->
p_vout
,
p_vpar
->
picture
.
p_picture
);
}
/* We are about to die. Reattach video output to p_vlc. */
vlc_object_detach
(
p_vpar
->
p_vout
,
p_vpar
->
p_fifo
);
vlc_object_attach
(
p_vpar
->
p_vout
,
p_vpar
->
p_fifo
->
p_vlc
);
/* We are about to die. Reattach video output to p_vlc. */
vlc_object_detach
(
p_vpar
->
p_vout
,
p_vpar
->
p_fifo
);
vlc_object_attach
(
p_vpar
->
p_vout
,
p_vpar
->
p_fifo
->
p_vlc
);
}
msg_Dbg
(
p_vpar
->
p_fifo
,
"%d loops among %d sequence(s)"
,
p_vpar
->
c_loops
,
p_vpar
->
c_sequences
);
...
...
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