Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ef9b193b
Commit
ef9b193b
authored
Feb 22, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: changed the prototype of sout_InputNew.
parent
68e3f348
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
31 deletions
+20
-31
include/stream_output.h
include/stream_output.h
+2
-3
src/input/input_dec.c
src/input/input_dec.c
+13
-11
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+5
-17
No files found.
include/stream_output.h
View file @
ef9b193b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* stream_output.h : stream output module
* stream_output.h : stream output module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id: stream_output.h,v 1.2
0 2004/01/25 18:17:08 zorglub
Exp $
* $Id: stream_output.h,v 1.2
1 2004/02/22 16:08:47 fenrir
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Laurent Aimar <fenrir@via.ecp.fr>
* Laurent Aimar <fenrir@via.ecp.fr>
...
@@ -282,8 +282,7 @@ VLC_EXPORT( sout_buffer_t *, sout_FifoGet, ( sout_fifo_t * ) );
...
@@ -282,8 +282,7 @@ VLC_EXPORT( sout_buffer_t *, sout_FifoGet, ( sout_fifo_t * ) );
VLC_EXPORT
(
sout_buffer_t
*
,
sout_FifoShow
,
(
sout_fifo_t
*
)
);
VLC_EXPORT
(
sout_buffer_t
*
,
sout_FifoShow
,
(
sout_fifo_t
*
)
);
#define sout_InputNew( a, b ) __sout_InputNew( VLC_OBJECT(a), b )
VLC_EXPORT
(
sout_packetizer_input_t
*
,
sout_InputNew
,(
sout_instance_t
*
,
es_format_t
*
)
);
VLC_EXPORT
(
sout_packetizer_input_t
*
,
__sout_InputNew
,
(
vlc_object_t
*
,
es_format_t
*
)
);
VLC_EXPORT
(
int
,
sout_InputDelete
,
(
sout_packetizer_input_t
*
)
);
VLC_EXPORT
(
int
,
sout_InputDelete
,
(
sout_packetizer_input_t
*
)
);
VLC_EXPORT
(
int
,
sout_InputSendBuffer
,
(
sout_packetizer_input_t
*
,
sout_buffer_t
*
)
);
VLC_EXPORT
(
int
,
sout_InputSendBuffer
,
(
sout_packetizer_input_t
*
,
sout_buffer_t
*
)
);
...
...
src/input/input_dec.c
View file @
ef9b193b
...
@@ -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-2004 VideoLAN
* Copyright (C) 1999-2004 VideoLAN
* $Id: input_dec.c,v 1.
89 2004/01/30 17:49:21
fenrir Exp $
* $Id: input_dec.c,v 1.
90 2004/02/22 16:08:47
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>
...
@@ -66,7 +66,8 @@ struct decoder_owner_sys_t
...
@@ -66,7 +66,8 @@ struct decoder_owner_sys_t
vout_thread_t
*
p_vout
;
vout_thread_t
*
p_vout
;
sout_packetizer_input_t
*
p_sout
;
sout_instance_t
*
p_sout
;
sout_packetizer_input_t
*
p_sout_input
;
/* Current format in use by the output */
/* Current format in use by the output */
video_format_t
video
;
video_format_t
video
;
...
@@ -482,7 +483,8 @@ static decoder_t * CreateDecoder( input_thread_t * p_input,
...
@@ -482,7 +483,8 @@ static decoder_t * CreateDecoder( input_thread_t * p_input,
p_dec
->
p_owner
->
p_aout
=
NULL
;
p_dec
->
p_owner
->
p_aout
=
NULL
;
p_dec
->
p_owner
->
p_aout_input
=
NULL
;
p_dec
->
p_owner
->
p_aout_input
=
NULL
;
p_dec
->
p_owner
->
p_vout
=
NULL
;
p_dec
->
p_owner
->
p_vout
=
NULL
;
p_dec
->
p_owner
->
p_sout
=
NULL
;
p_dec
->
p_owner
->
p_sout
=
p_input
->
stream
.
p_sout
;
p_dec
->
p_owner
->
p_sout_input
=
NULL
;
p_dec
->
p_owner
->
p_es_descriptor
=
p_es
;
p_dec
->
p_owner
->
p_es_descriptor
=
p_es
;
/* decoder fifo */
/* decoder fifo */
if
(
(
p_dec
->
p_owner
->
p_fifo
=
block_FifoNew
(
p_dec
)
)
==
NULL
)
if
(
(
p_dec
->
p_owner
->
p_fifo
=
block_FifoNew
(
p_dec
)
)
==
NULL
)
...
@@ -573,7 +575,7 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
...
@@ -573,7 +575,7 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_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
))
)
{
{
if
(
!
p_dec
->
p_owner
->
p_sout
)
if
(
!
p_dec
->
p_owner
->
p_sout
_input
)
{
{
es_format_Copy
(
&
p_dec
->
p_owner
->
sout
,
&
p_dec
->
fmt_out
);
es_format_Copy
(
&
p_dec
->
p_owner
->
sout
,
&
p_dec
->
fmt_out
);
if
(
p_dec
->
p_owner
->
p_es_descriptor
->
p_pgrm
)
if
(
p_dec
->
p_owner
->
p_es_descriptor
->
p_pgrm
)
...
@@ -587,10 +589,10 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
...
@@ -587,10 +589,10 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
p_dec
->
p_owner
->
sout
.
psz_language
=
strdup
(
p_dec
->
fmt_in
.
psz_language
);
p_dec
->
p_owner
->
sout
.
psz_language
=
strdup
(
p_dec
->
fmt_in
.
psz_language
);
}
}
p_dec
->
p_owner
->
p_sout
=
p_dec
->
p_owner
->
p_sout
_input
=
sout_InputNew
(
p_dec
,
&
p_dec
->
p_owner
->
sout
);
sout_InputNew
(
p_dec
->
p_owner
->
p_sout
,
&
p_dec
->
p_owner
->
sout
);
if
(
p_dec
->
p_owner
->
p_sout
==
NULL
)
if
(
p_dec
->
p_owner
->
p_sout
_input
==
NULL
)
{
{
msg_Err
(
p_dec
,
"cannot create packetizer output"
);
msg_Err
(
p_dec
,
"cannot create packetizer output"
);
p_dec
->
b_error
=
VLC_TRUE
;
p_dec
->
b_error
=
VLC_TRUE
;
...
@@ -611,7 +613,7 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
...
@@ -611,7 +613,7 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
sout_buffer_t
*
p_sout_buffer
;
sout_buffer_t
*
p_sout_buffer
;
p_sout_buffer
=
p_sout_buffer
=
sout_BufferNew
(
p_dec
->
p_owner
->
p_sout
->
p_sout
,
sout_BufferNew
(
p_dec
->
p_owner
->
p_sout
_input
->
p_sout
,
p_sout_block
->
i_buffer
);
p_sout_block
->
i_buffer
);
if
(
p_sout_buffer
==
NULL
)
if
(
p_sout_buffer
==
NULL
)
{
{
...
@@ -628,7 +630,7 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
...
@@ -628,7 +630,7 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
block_Release
(
p_sout_block
);
block_Release
(
p_sout_block
);
sout_InputSendBuffer
(
p_dec
->
p_owner
->
p_sout
,
p_sout_buffer
);
sout_InputSendBuffer
(
p_dec
->
p_owner
->
p_sout
_input
,
p_sout_buffer
);
p_sout_block
=
p_next
;
p_sout_block
=
p_next
;
}
}
...
@@ -710,9 +712,9 @@ static void DeleteDecoder( decoder_t * p_dec )
...
@@ -710,9 +712,9 @@ static void DeleteDecoder( decoder_t * p_dec )
vout_Request
(
p_dec
,
p_dec
->
p_owner
->
p_vout
,
0
,
0
,
0
,
0
);
vout_Request
(
p_dec
,
p_dec
->
p_owner
->
p_vout
,
0
,
0
,
0
,
0
);
}
}
if
(
p_dec
->
p_owner
->
p_sout
)
if
(
p_dec
->
p_owner
->
p_sout
_input
)
{
{
sout_InputDelete
(
p_dec
->
p_owner
->
p_sout
);
sout_InputDelete
(
p_dec
->
p_owner
->
p_sout
_input
);
if
(
p_dec
->
p_owner
->
sout
.
i_extra
)
free
(
p_dec
->
p_owner
->
sout
.
p_extra
);
if
(
p_dec
->
p_owner
->
sout
.
i_extra
)
free
(
p_dec
->
p_owner
->
sout
.
p_extra
);
}
}
...
...
src/stream_output/stream_output.c
View file @
ef9b193b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* stream_output.c : stream output module
* stream_output.c : stream output module
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-2004 VideoLAN
* Copyright (C) 2002-2004 VideoLAN
* $Id: stream_output.c,v 1.
39 2004/01/27 14:05:33 gbazin
Exp $
* $Id: stream_output.c,v 1.
40 2004/02/22 16:08:47 fenrir
Exp $
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Laurent Aimar <fenrir@via.ecp.fr>
* Laurent Aimar <fenrir@via.ecp.fr>
...
@@ -174,20 +174,11 @@ void sout_DeleteInstance( sout_instance_t * p_sout )
...
@@ -174,20 +174,11 @@ void sout_DeleteInstance( sout_instance_t * p_sout )
/*****************************************************************************
/*****************************************************************************
* Packetizer/Input
* Packetizer/Input
*****************************************************************************/
*****************************************************************************/
sout_packetizer_input_t
*
__sout_InputNew
(
vlc_object_t
*
p_this
,
sout_packetizer_input_t
*
sout_InputNew
(
sout_instance_t
*
p_sout
,
es_format_t
*
p_fmt
)
es_format_t
*
p_fmt
)
{
{
sout_instance_t
*
p_sout
=
NULL
;
sout_packetizer_input_t
*
p_input
;
sout_packetizer_input_t
*
p_input
;
/* search an stream output */
if
(
!
(
p_sout
=
vlc_object_find
(
p_this
,
VLC_OBJECT_SOUT
,
FIND_ANYWHERE
)
)
)
{
/* can't happen ... */
msg_Err
(
p_this
,
"cannot find any stream ouput"
);
return
NULL
;
}
msg_Dbg
(
p_sout
,
"adding a new input"
);
msg_Dbg
(
p_sout
,
"adding a new input"
);
/* *** create a packetizer input *** */
/* *** create a packetizer input *** */
...
@@ -203,16 +194,13 @@ sout_packetizer_input_t *__sout_InputNew( vlc_object_t *p_this,
...
@@ -203,16 +194,13 @@ sout_packetizer_input_t *__sout_InputNew( vlc_object_t *p_this,
/* *** add it to the stream chain */
/* *** add it to the stream chain */
vlc_mutex_lock
(
&
p_sout
->
lock
);
vlc_mutex_lock
(
&
p_sout
->
lock
);
p_input
->
id
=
p_sout
->
p_stream
->
pf_add
(
p_sout
->
p_stream
,
p_input
->
id
=
p_sout
->
p_stream
->
pf_add
(
p_sout
->
p_stream
,
p_fmt
);
p_fmt
);
vlc_mutex_unlock
(
&
p_sout
->
lock
);
vlc_mutex_unlock
(
&
p_sout
->
lock
);
vlc_object_release
(
p_sout
);
if
(
p_input
->
id
==
NULL
)
if
(
p_input
->
id
==
NULL
)
{
{
free
(
p_input
);
free
(
p_input
);
return
(
NULL
)
;
return
NULL
;
}
}
return
(
p_input
);
return
(
p_input
);
...
...
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