Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b2b9fb4c
Commit
b2b9fb4c
authored
May 03, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
block_FifoNew: remove un-needed parameter
parent
6d44cf44
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
18 additions
and
19 deletions
+18
-19
include/vlc_block.h
include/vlc_block.h
+1
-2
modules/access/rtmp/access.c
modules/access/rtmp/access.c
+2
-2
modules/access_filter/timeshift.c
modules/access_filter/timeshift.c
+1
-1
modules/access_output/udp.c
modules/access_output/udp.c
+2
-2
modules/misc/rtsp.c
modules/misc/rtsp.c
+1
-1
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+1
-1
src/input/decoder.c
src/input/decoder.c
+1
-1
src/input/demux.c
src/input/demux.c
+1
-1
src/libvlc.sym
src/libvlc.sym
+1
-1
src/misc/block.c
src/misc/block.c
+6
-6
src/stream_output/stream_output.c
src/stream_output/stream_output.c
+1
-1
No files found.
include/vlc_block.h
View file @
b2b9fb4c
...
...
@@ -271,8 +271,7 @@ static inline block_t *block_ChainGather( block_t *p_list )
* (this is used to wakeup a thread when there is no data to queue)
****************************************************************************/
#define block_FifoNew( a ) __block_FifoNew( VLC_OBJECT(a) )
VLC_EXPORT
(
block_fifo_t
*
,
__block_FifoNew
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
block_fifo_t
*
,
block_FifoNew
,
(
void
)
);
VLC_EXPORT
(
void
,
block_FifoRelease
,
(
block_fifo_t
*
)
);
VLC_EXPORT
(
void
,
block_FifoEmpty
,
(
block_fifo_t
*
)
);
VLC_EXPORT
(
size_t
,
block_FifoPut
,
(
block_fifo_t
*
,
block_t
*
)
);
...
...
modules/access/rtmp/access.c
View file @
b2b9fb4c
...
...
@@ -146,8 +146,8 @@ static int Open( vlc_object_t *p_this )
vlc_object_attach
(
p_sys
->
p_thread
,
p_access
);
p_sys
->
p_thread
->
b_die
=
0
;
p_sys
->
p_thread
->
b_error
=
0
;
p_sys
->
p_thread
->
p_fifo_media
=
block_FifoNew
(
p_access
);
p_sys
->
p_thread
->
p_empty_blocks
=
block_FifoNew
(
p_access
);
p_sys
->
p_thread
->
p_fifo_media
=
block_FifoNew
();
p_sys
->
p_thread
->
p_empty_blocks
=
block_FifoNew
();
p_sys
->
p_thread
->
has_audio
=
0
;
p_sys
->
p_thread
->
has_video
=
0
;
p_sys
->
p_thread
->
metadata_received
=
0
;
...
...
modules/access_filter/timeshift.c
View file @
b2b9fb4c
...
...
@@ -161,7 +161,7 @@ static int Open( vlc_object_t *p_this )
p_access
->
p_sys
=
p_sys
=
malloc
(
sizeof
(
access_sys_t
)
);
/* */
p_sys
->
p_fifo
=
block_FifoNew
(
p_access
);
p_sys
->
p_fifo
=
block_FifoNew
();
p_sys
->
i_write_size
=
0
;
p_sys
->
i_files
=
0
;
p_sys
->
i_data
=
0
;
...
...
modules/access_output/udp.c
View file @
b2b9fb4c
...
...
@@ -221,8 +221,8 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_thread
->
p_sout
=
p_access
->
p_sout
;
p_sys
->
p_thread
->
b_die
=
0
;
p_sys
->
p_thread
->
b_error
=
0
;
p_sys
->
p_thread
->
p_fifo
=
block_FifoNew
(
p_access
);
p_sys
->
p_thread
->
p_empty_blocks
=
block_FifoNew
(
p_access
);
p_sys
->
p_thread
->
p_fifo
=
block_FifoNew
();
p_sys
->
p_thread
->
p_empty_blocks
=
block_FifoNew
();
i_handle
=
net_ConnectDgram
(
p_this
,
psz_dst_addr
,
i_dst_port
,
-
1
,
IPPROTO_UDP
);
...
...
modules/misc/rtsp.c
View file @
b2b9fb4c
...
...
@@ -297,7 +297,7 @@ static int Open( vlc_object_t *p_this )
p_vod
->
pf_media_add_es
=
MediaAddES
;
p_vod
->
pf_media_del_es
=
MediaDelES
;
p_sys
->
p_fifo_cmd
=
block_FifoNew
(
p_vod
);
p_sys
->
p_fifo_cmd
=
block_FifoNew
();
if
(
vlc_thread_create
(
p_vod
,
"rtsp vod thread"
,
CommandThread
,
VLC_THREAD_PRIORITY_LOW
,
false
)
)
{
...
...
modules/stream_out/rtp.c
View file @
b2b9fb4c
...
...
@@ -1162,7 +1162,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
p_sys
->
psz_destination
,
p_sys
->
i_ttl
,
id
->
i_port
,
id
->
i_port
+
1
);
id
->
p_fifo
=
block_FifoNew
(
p_stream
);
id
->
p_fifo
=
block_FifoNew
();
if
(
vlc_thread_create
(
id
,
"RTP send thread"
,
ThreadSend
,
VLC_THREAD_PRIORITY_HIGHEST
,
false
)
)
goto
error
;
...
...
src/input/decoder.c
View file @
b2b9fb4c
...
...
@@ -483,7 +483,7 @@ static decoder_t * CreateDecoder( input_thread_t *p_input,
p_dec
->
p_owner
->
p_packetizer
=
NULL
;
/* decoder fifo */
if
(
(
p_dec
->
p_owner
->
p_fifo
=
block_FifoNew
(
p_dec
)
)
==
NULL
)
if
(
(
p_dec
->
p_owner
->
p_fifo
=
block_FifoNew
()
)
==
NULL
)
{
msg_Err
(
p_dec
,
"out of memory"
);
return
NULL
;
...
...
src/input/demux.c
View file @
b2b9fb4c
...
...
@@ -337,7 +337,7 @@ stream_t *__stream_DemuxNew( vlc_object_t *p_obj, const char *psz_demux,
p_sys
->
psz_name
=
strdup
(
psz_demux
);
/* decoder fifo */
if
(
(
p_sys
->
p_fifo
=
block_FifoNew
(
s
)
)
==
NULL
)
if
(
(
p_sys
->
p_fifo
=
block_FifoNew
()
)
==
NULL
)
{
msg_Err
(
s
,
"out of memory"
);
vlc_object_release
(
s
);
...
...
src/libvlc.sym
View file @
b2b9fb4c
...
...
@@ -35,7 +35,7 @@ block_Alloc
block_FifoCount
block_FifoEmpty
block_FifoGet
__
block_FifoNew
block_FifoNew
block_FifoPut
block_FifoRelease
block_FifoShow
...
...
src/misc/block.c
View file @
b2b9fb4c
...
...
@@ -243,14 +243,14 @@ struct block_fifo_t
bool
b_force_wake
;
};
block_fifo_t
*
__block_FifoNew
(
vlc_object_t
*
p_obj
)
block_fifo_t
*
block_FifoNew
(
void
)
{
block_fifo_t
*
p_fifo
;
block_fifo_t
*
p_fifo
=
malloc
(
sizeof
(
block_fifo_t
)
);
if
(
!
p_fifo
)
return
NULL
;
p_fifo
=
malloc
(
sizeof
(
block_fifo_t
)
);
if
(
!
p_fifo
)
return
NULL
;
vlc_mutex_init
(
p_obj
,
&
p_fifo
->
lock
);
vlc_cond_init
(
p_obj
,
&
p_fifo
->
wait
);
vlc_mutex_init
(
NULL
,
&
p_fifo
->
lock
);
vlc_cond_init
(
NULL
,
&
p_fifo
->
wait
);
p_fifo
->
p_first
=
NULL
;
p_fifo
->
pp_last
=
&
p_fifo
->
p_first
;
p_fifo
->
i_depth
=
p_fifo
->
i_size
=
0
;
...
...
src/stream_output/stream_output.c
View file @
b2b9fb4c
...
...
@@ -530,7 +530,7 @@ sout_input_t *sout_MuxAddStream( sout_mux_t *p_mux, es_format_t *p_fmt )
}
p_input
->
p_sout
=
p_mux
->
p_sout
;
p_input
->
p_fmt
=
p_fmt
;
p_input
->
p_fifo
=
block_FifoNew
(
p_mux
->
p_sout
);
p_input
->
p_fifo
=
block_FifoNew
();
p_input
->
p_sys
=
NULL
;
TAB_APPEND
(
p_mux
->
i_nb_inputs
,
p_mux
->
pp_inputs
,
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