Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
baa735b3
Commit
baa735b3
authored
May 04, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/libmpeg2.c: fixed the "main: cannot delete object with
children" bug.
parent
4e86c7a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+8
-4
src/video_output/vout_synchro.c
src/video_output/vout_synchro.c
+2
-2
No files found.
modules/codec/libmpeg2.c
View file @
baa735b3
...
...
@@ -2,7 +2,7 @@
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: libmpeg2.c,v 1.1
6 2003/05/04 01:36:20
massiot Exp $
* $Id: libmpeg2.c,v 1.1
7 2003/05/04 22:33:35
massiot Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
...
...
@@ -259,6 +259,10 @@ static int RunDecoder( decoder_fifo_t *p_fifo )
mpeg2_set_buf
(
p_dec
->
p_mpeg2dec
,
buf
,
NULL
);
mpeg2_set_buf
(
p_dec
->
p_mpeg2dec
,
buf
,
NULL
);
if
(
p_dec
->
p_synchro
)
{
vout_SynchroRelease
(
p_dec
->
p_synchro
);
}
p_dec
->
p_synchro
=
vout_SynchroInit
(
p_dec
->
p_fifo
,
p_dec
->
p_vout
,
(
u32
)((
u64
)
1001000000
*
27
/
p_dec
->
p_info
->
sequence
->
frame_period
)
);
}
...
...
@@ -402,6 +406,9 @@ static void CloseDecoder( dec_thread_t * p_dec )
if
(
p_dec
->
p_pes
)
input_DeletePES
(
p_dec
->
p_fifo
->
p_packets_mgt
,
p_dec
->
p_pes
);
if
(
p_dec
->
p_synchro
)
vout_SynchroRelease
(
p_dec
->
p_synchro
);
if
(
p_dec
->
p_vout
)
{
/* Temporary hack to free the pictures in use by libmpeg2 */
...
...
@@ -419,9 +426,6 @@ static void CloseDecoder( dec_thread_t * p_dec )
vout_Request
(
p_dec
->
p_fifo
,
p_dec
->
p_vout
,
0
,
0
,
0
,
0
);
}
if
(
p_dec
->
p_synchro
)
vout_SynchroRelease
(
p_dec
->
p_synchro
);
if
(
p_dec
->
p_mpeg2dec
)
mpeg2_close
(
p_dec
->
p_mpeg2dec
);
free
(
p_dec
);
...
...
src/video_output/vout_synchro.c
View file @
baa735b3
...
...
@@ -2,7 +2,7 @@
* vout_synchro.c : frame dropping routines
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: vout_synchro.c,v 1.
1 2003/04/14 22:22:32
massiot Exp $
* $Id: vout_synchro.c,v 1.
2 2003/05/04 22:33:35
massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
...
@@ -126,7 +126,7 @@ vout_synchro_t * __vout_SynchroInit( vlc_object_t * p_object,
msg_Err
(
p_object
,
"out of memory"
);
return
NULL
;
}
vlc_object_attach
(
p_synchro
,
p_
vou
t
);
vlc_object_attach
(
p_synchro
,
p_
objec
t
);
/* We use a fake stream pattern, which is often right. */
p_synchro
->
i_n_p
=
p_synchro
->
i_eta_p
=
DEFAULT_NB_P
;
...
...
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