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
bec4516d
Commit
bec4516d
authored
Nov 18, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* allow packetizer to return multiple blocks at once.
parent
35579492
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
16 deletions
+23
-16
src/input/input_dec.c
src/input/input_dec.c
+23
-16
No files found.
src/input/input_dec.c
View file @
bec4516d
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* input_dec.c: Functions for the management of decoders
* input_dec.c: Functions for the management of decoders
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: input_dec.c,v 1.6
8 2003/11/16 22:23:47 gbazin
Exp $
* $Id: input_dec.c,v 1.6
9 2003/11/18 20:34:23 fenrir
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
* Gildas Bazin <gbazin@netcourrier.com>
...
@@ -480,7 +480,6 @@ static int DecoderThread( decoder_t * p_dec )
...
@@ -480,7 +480,6 @@ static int DecoderThread( decoder_t * p_dec )
if
(
p_dec
->
i_object_type
==
VLC_OBJECT_PACKETIZER
)
if
(
p_dec
->
i_object_type
==
VLC_OBJECT_PACKETIZER
)
{
{
sout_buffer_t
*
p_sout_buffer
;
block_t
*
p_sout_block
;
block_t
*
p_sout_block
;
while
(
(
p_sout_block
=
p_dec
->
pf_packetize
(
p_dec
,
&
p_block
))
)
while
(
(
p_sout_block
=
p_dec
->
pf_packetize
(
p_dec
,
&
p_block
))
)
...
@@ -515,25 +514,33 @@ static int DecoderThread( decoder_t * p_dec )
...
@@ -515,25 +514,33 @@ static int DecoderThread( decoder_t * p_dec )
}
}
}
}
p_sout_buffer
=
while
(
p_sout_block
)
sout_BufferNew
(
p_dec
->
p_owner
->
p_sout
->
p_sout
,
p_sout_block
->
i_buffer
);
if
(
p_sout_buffer
==
NULL
)
{
{
msg_Err
(
p_dec
,
"cannot get sout buffer"
);
block_t
*
p_next
=
p_sout_block
->
p_next
;
break
;
sout_buffer_t
*
p_sout_buffer
;
}
memcpy
(
p_sout_buffer
->
p_buffer
,
p_sout_block
->
p_buffer
,
p_sout_buffer
=
p_sout_block
->
i_buffer
);
sout_BufferNew
(
p_dec
->
p_owner
->
p_sout
->
p_sout
,
p_sout_block
->
i_buffer
);
if
(
p_sout_buffer
==
NULL
)
{
msg_Err
(
p_dec
,
"cannot get sout buffer"
);
break
;
}
p_sout_buffer
->
i_pts
=
p_sout_block
->
i_pts
;
memcpy
(
p_sout_buffer
->
p_buffer
,
p_sout_block
->
p_buffer
,
p_sout_buffer
->
i_dts
=
p_sout_block
->
i_dts
;
p_sout_block
->
i_buffer
);
p_sout_buffer
->
i_length
=
p_sout_block
->
i_length
;
block_Release
(
p_sout_block
);
p_sout_buffer
->
i_pts
=
p_sout_block
->
i_pts
;
p_sout_buffer
->
i_dts
=
p_sout_block
->
i_dts
;
p_sout_buffer
->
i_length
=
p_sout_block
->
i_length
;
sout_InputSendBuffer
(
p_dec
->
p_owner
->
p_sout
,
p_sout_buffer
);
block_Release
(
p_sout_block
);
sout_InputSendBuffer
(
p_dec
->
p_owner
->
p_sout
,
p_sout_buffer
);
p_sout_block
=
p_next
;
}
}
}
}
}
else
if
(
p_dec
->
fmt_in
.
i_cat
==
AUDIO_ES
)
else
if
(
p_dec
->
fmt_in
.
i_cat
==
AUDIO_ES
)
...
...
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