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
55e26be2
Commit
55e26be2
authored
Nov 08, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/ps.c: don't flood everything with "garbage at input" messages if we lost sync.
parent
6ab6c771
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/demux/ps.c
modules/demux/ps.c
+10
-1
No files found.
modules/demux/ps.c
View file @
55e26be2
...
...
@@ -68,6 +68,8 @@ struct demux_sys_t
int64_t
i_scr
;
int
i_mux_rate
;
vlc_bool_t
b_lost_sync
;
};
static
int
Demux
(
demux_t
*
p_demux
);
...
...
@@ -107,6 +109,7 @@ static int Open( vlc_object_t *p_this )
/* Init p_sys */
p_sys
->
i_mux_rate
=
0
;
p_sys
->
i_scr
=
-
1
;
p_sys
->
b_lost_sync
=
VLC_FALSE
;
ps_psm_init
(
&
p_sys
->
psm
);
ps_track_init
(
p_sys
->
tk
);
...
...
@@ -177,10 +180,16 @@ static int Demux( demux_t *p_demux )
}
else
if
(
i_ret
==
0
)
{
msg_Warn
(
p_demux
,
"garbage at input"
);
if
(
!
p_sys
->
b_lost_sync
)
msg_Warn
(
p_demux
,
"garbage at input, trying to resync..."
);
p_sys
->
b_lost_sync
=
VLC_TRUE
;
return
1
;
}
if
(
p_sys
->
b_lost_sync
)
msg_Warn
(
p_demux
,
"found sync code"
);
p_sys
->
b_lost_sync
=
VLC_FALSE
;
if
(
(
p_pkt
=
ps_pkt_read
(
p_demux
->
s
,
i_code
)
)
==
NULL
)
{
return
0
;
...
...
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