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
c24f27b1
Commit
c24f27b1
authored
Oct 02, 2007
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder_synchro_t does not need to be a vlc_object_t.
parent
cfb3d343
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
src/input/decoder_synchro.c
src/input/decoder_synchro.c
+18
-18
No files found.
src/input/decoder_synchro.c
View file @
c24f27b1
...
...
@@ -107,8 +107,10 @@
struct
decoder_synchro_t
{
VLC_COMMON_MEMBERS
/* */
decoder_t
*
p_dec
;
/* */
int
i_frame_rate
;
int
i_current_rate
;
vlc_bool_t
b_no_skip
;
...
...
@@ -154,18 +156,17 @@ struct decoder_synchro_t
/*****************************************************************************
* decoder_SynchroInit : You know what ?
*****************************************************************************/
decoder_synchro_t
*
decoder_SynchroInit
(
decoder_t
*
p_dec
,
int
i_frame_rate
)
decoder_synchro_t
*
decoder_SynchroInit
(
decoder_t
*
p_dec
,
int
i_frame_rate
)
{
decoder_synchro_t
*
p_synchro
=
vlc_object_create
(
p_dec
,
sizeof
(
decoder_synchro_t
)
);
decoder_synchro_t
*
p_synchro
=
malloc
(
sizeof
(
*
p_synchro
)
);
if
(
p_synchro
==
NULL
)
{
msg_Err
(
p_dec
,
"out of memory"
);
return
NULL
;
}
vlc_object_attach
(
p_synchro
,
p_dec
);
memset
(
p_synchro
,
0
,
sizeof
(
*
p_synchro
)
);
p_synchro
->
p_dec
=
p_dec
;
p_synchro
->
b_no_skip
=
!
config_GetInt
(
p_dec
,
"skip-frames"
);
p_synchro
->
b_quiet
=
config_GetInt
(
p_dec
,
"quiet-synchro"
);
...
...
@@ -192,8 +193,7 @@ decoder_synchro_t * decoder_SynchroInit( decoder_t *p_dec,
*****************************************************************************/
void
decoder_SynchroRelease
(
decoder_synchro_t
*
p_synchro
)
{
vlc_object_detach
(
p_synchro
);
vlc_object_destroy
(
p_synchro
);
free
(
p_synchro
);
}
/*****************************************************************************
...
...
@@ -260,7 +260,7 @@ vlc_bool_t decoder_SynchroChoose( decoder_synchro_t * p_synchro, int i_coding_ty
}
if
(
!
b_decode
&&
!
p_synchro
->
b_quiet
)
{
msg_Warn
(
p_synchro
,
msg_Warn
(
p_synchro
->
p_dec
,
"synchro trashing I ("
I64Fd
")"
,
pts
-
now
);
}
break
;
...
...
@@ -415,7 +415,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
{
#if 0
if( !p_synchro->b_quiet )
msg_Dbg( p_synchro,
msg_Dbg( p_synchro
->p_dec
,
"stream periodicity changed from P[%d] to P[%d]",
p_synchro->i_n_p, p_synchro->i_eta_p );
#endif
...
...
@@ -430,7 +430,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
#if 0
if( !p_synchro->b_quiet )
msg_Dbg( p_synchro, "I("I64Fd") P("I64Fd")[%d] B("I64Fd")"
msg_Dbg( p_synchro
->p_dec
, "I("I64Fd") P("I64Fd")[%d] B("I64Fd")"
"[%d] YUV("I64Fd") : trashed %d:%d/%d",
p_synchro->p_tau[I_CODING_TYPE],
p_synchro->p_tau[P_CODING_TYPE],
...
...
@@ -448,7 +448,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
if
(
p_synchro
->
i_pic
>=
100
)
{
if
(
!
p_synchro
->
b_quiet
&&
p_synchro
->
i_trashed_pic
!=
0
)
msg_Dbg
(
p_synchro
,
"decoded %d/%d pictures"
,
msg_Dbg
(
p_synchro
->
p_dec
,
"decoded %d/%d pictures"
,
p_synchro
->
i_pic
-
p_synchro
->
i_trashed_pic
,
p_synchro
->
i_pic
);
...
...
@@ -465,7 +465,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
{
#if 0
if( !p_synchro->b_quiet )
msg_Dbg( p_synchro,
msg_Dbg( p_synchro
->p_dec
,
"stream periodicity changed from B[%d] to B[%d]",
p_synchro->i_n_b, p_synchro->i_eta_b );
#endif
...
...
@@ -501,7 +501,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
||
p_synchro
->
current_pts
-
next_pts
>
PTS_THRESHOLD
)
&&
!
p_synchro
->
b_quiet
)
{
msg_Warn
(
p_synchro
,
"decoder synchro warning: pts != "
msg_Warn
(
p_synchro
->
p_dec
,
"decoder synchro warning: pts != "
"current_date ("
I64Fd
")"
,
p_synchro
->
current_pts
-
next_pts
);
...
...
@@ -522,7 +522,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
||
p_synchro
->
backward_pts
-
next_dts
>
PTS_THRESHOLD
)
&&
!
p_synchro
->
b_quiet
)
{
msg_Warn
(
p_synchro
,
"backward_pts != dts ("
I64Fd
")"
,
msg_Warn
(
p_synchro
->
p_dec
,
"backward_pts != dts ("
I64Fd
")"
,
next_dts
-
p_synchro
->
backward_pts
);
}
...
...
@@ -531,7 +531,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
||
p_synchro
->
current_pts
-
p_synchro
->
backward_pts
>
PTS_THRESHOLD
)
&&
!
p_synchro
->
b_quiet
)
{
msg_Warn
(
p_synchro
,
msg_Warn
(
p_synchro
->
p_dec
,
"backward_pts != current_pts ("
I64Fd
")"
,
p_synchro
->
current_pts
-
p_synchro
->
backward_pts
);
...
...
@@ -546,7 +546,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
||
p_synchro
->
current_pts
-
next_dts
>
PTS_THRESHOLD
)
&&
!
p_synchro
->
b_quiet
)
{
msg_Warn
(
p_synchro
,
"dts != current_pts ("
I64Fd
")"
,
msg_Warn
(
p_synchro
->
p_dec
,
"dts != current_pts ("
I64Fd
")"
,
p_synchro
->
current_pts
-
next_dts
);
}
...
...
@@ -571,7 +571,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
/* We cannot be _that_ late, something must have happened, reinit
* the dates. */
if( !p_synchro->b_quiet )
msg_Warn( p_synchro, "PTS << now ("I64Fd"), resetting",
msg_Warn( p_synchro
->p_dec
, "PTS << now ("I64Fd"), resetting",
now - p_synchro->current_pts - DEFAULT_PTS_DELAY );
p_synchro->current_pts = now + DEFAULT_PTS_DELAY;
}
...
...
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