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
685c349a
Commit
685c349a
authored
Aug 22, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/input/decoder.c: don't forget that packetizers can output a chain of data blocks.
parent
fee23a72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
9 deletions
+26
-9
src/input/decoder.c
src/input/decoder.c
+26
-9
No files found.
src/input/decoder.c
View file @
685c349a
...
...
@@ -585,11 +585,20 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
while
(
(
p_packetized_block
=
p_packetizer
->
pf_packetize
(
p_packetizer
,
&
p_block
))
)
{
while
(
(
p_aout_buf
=
p_dec
->
pf_decode_audio
(
p_dec
,
&
p_packetized_block
))
)
while
(
p_packetized_block
)
{
aout_DecPlay
(
p_dec
->
p_owner
->
p_aout
,
p_dec
->
p_owner
->
p_aout_input
,
p_aout_buf
);
block_t
*
p_next
=
p_packetized_block
->
p_next
;
p_packetized_block
->
p_next
=
NULL
;
while
(
(
p_aout_buf
=
p_dec
->
pf_decode_audio
(
p_dec
,
&
p_packetized_block
))
)
{
aout_DecPlay
(
p_dec
->
p_owner
->
p_aout
,
p_dec
->
p_owner
->
p_aout_input
,
p_aout_buf
);
}
p_packetized_block
=
p_next
;
}
}
}
...
...
@@ -611,12 +620,20 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
while
(
(
p_packetized_block
=
p_packetizer
->
pf_packetize
(
p_packetizer
,
&
p_block
))
)
{
while
(
(
p_pic
=
p_dec
->
pf_decode_video
(
p_dec
,
&
p_packetized_block
))
)
while
(
p_packetized_block
)
{
vout_DatePicture
(
p_dec
->
p_owner
->
p_vout
,
p_pic
,
p_pic
->
date
);
vout_DisplayPicture
(
p_dec
->
p_owner
->
p_vout
,
p_pic
);
block_t
*
p_next
=
p_packetized_block
->
p_next
;
p_packetized_block
->
p_next
=
NULL
;
while
(
(
p_pic
=
p_dec
->
pf_decode_video
(
p_dec
,
&
p_packetized_block
))
)
{
vout_DatePicture
(
p_dec
->
p_owner
->
p_vout
,
p_pic
,
p_pic
->
date
);
vout_DisplayPicture
(
p_dec
->
p_owner
->
p_vout
,
p_pic
);
}
p_packetized_block
=
p_next
;
}
}
}
...
...
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