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
68dbf6ec
Commit
68dbf6ec
authored
Aug 03, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
block_BytestreamInit(): rationalize prototype
parent
e80f251e
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
18 deletions
+12
-18
include/vlc_block_helper.h
include/vlc_block_helper.h
+4
-10
modules/codec/a52.c
modules/codec/a52.c
+1
-1
modules/codec/dts.c
modules/codec/dts.c
+1
-1
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+1
-1
modules/packetizer/dirac.c
modules/packetizer/dirac.c
+1
-1
modules/packetizer/flac.c
modules/packetizer/flac.c
+1
-1
modules/packetizer/mlp.c
modules/packetizer/mlp.c
+1
-1
modules/packetizer/mpeg4audio.c
modules/packetizer/mpeg4audio.c
+1
-1
modules/packetizer/packetizer_helper.h
modules/packetizer/packetizer_helper.h
+1
-1
No files found.
include/vlc_block_helper.h
View file @
68dbf6ec
...
...
@@ -37,15 +37,10 @@ typedef struct block_bytestream_t
/*****************************************************************************
* block_bytestream_t management
*****************************************************************************/
VLC_USED
static
inline
block_bytestream_t
block_BytestreamInit
(
void
)
static
inline
void
block_BytestreamInit
(
block_bytestream_t
*
p_bytestream
)
{
block_bytestream_t
bytestream
;
bytestream
.
i_offset
=
0
;
bytestream
.
p_chain
=
bytestream
.
p_block
=
NULL
;
return
bytestream
;
p_bytestream
->
p_chain
=
p_bytestream
->
p_block
=
NULL
;
p_bytestream
->
i_offset
=
0
;
}
static
inline
void
block_BytestreamRelease
(
block_bytestream_t
*
p_bytestream
)
...
...
@@ -65,8 +60,7 @@ static inline void block_BytestreamRelease( block_bytestream_t *p_bytestream )
static
inline
void
block_BytestreamEmpty
(
block_bytestream_t
*
p_bytestream
)
{
block_BytestreamRelease
(
p_bytestream
);
*
p_bytestream
=
block_BytestreamInit
();
block_BytestreamInit
(
p_bytestream
);
}
/**
...
...
modules/codec/a52.c
View file @
68dbf6ec
...
...
@@ -140,7 +140,7 @@ static int OpenCommon( vlc_object_t *p_this, bool b_packetizer )
date_Set
(
&
p_sys
->
end_date
,
0
);
p_sys
->
i_pts
=
VLC_TS_INVALID
;
p_sys
->
bytestream
=
block_BytestreamInit
(
);
block_BytestreamInit
(
&
p_sys
->
bytestream
);
/* Set output properties */
p_dec
->
fmt_out
.
i_cat
=
AUDIO_ES
;
...
...
modules/codec/dts.c
View file @
68dbf6ec
...
...
@@ -157,7 +157,7 @@ static int OpenCommon( vlc_object_t *p_this, bool b_packetizer )
p_sys
->
b_dts_hd
=
false
;
p_sys
->
i_pts
=
VLC_TS_INVALID
;
p_sys
->
bytestream
=
block_BytestreamInit
(
);
block_BytestreamInit
(
&
p_sys
->
bytestream
);
/* Set output properties */
p_dec
->
fmt_out
.
i_cat
=
AUDIO_ES
;
...
...
modules/codec/mpeg_audio.c
View file @
68dbf6ec
...
...
@@ -150,7 +150,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_packetizer
=
false
;
p_sys
->
i_state
=
STATE_NOSYNC
;
date_Set
(
&
p_sys
->
end_date
,
0
);
p_sys
->
bytestream
=
block_BytestreamInit
(
);
block_BytestreamInit
(
&
p_sys
->
bytestream
);
p_sys
->
i_pts
=
VLC_TS_INVALID
;
p_sys
->
b_discontinuity
=
false
;
...
...
modules/packetizer/dirac.c
View file @
68dbf6ec
...
...
@@ -1365,7 +1365,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_dts_last_out
=
p_sys
->
i_pts_last_out
=
VLC_TS_INVALID
;
p_sys
->
i_state
=
NOT_SYNCED
;
p_sys
->
bytestream
=
block_BytestreamInit
(
);
block_BytestreamInit
(
&
p_sys
->
bytestream
);
p_sys
->
pp_outqueue_last
=
&
p_sys
->
p_outqueue
;
p_sys
->
pp_eu_last
=
&
p_sys
->
p_eu
;
...
...
modules/packetizer/flac.c
View file @
68dbf6ec
...
...
@@ -127,7 +127,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_state
=
STATE_NOSYNC
;
p_sys
->
b_stream_info
=
false
;
p_sys
->
i_pts
=
VLC_TS_INVALID
;
p_sys
->
bytestream
=
block_BytestreamInit
(
);
block_BytestreamInit
(
&
p_sys
->
bytestream
);
/* */
es_format_Copy
(
&
p_dec
->
fmt_out
,
&
p_dec
->
fmt_in
);
...
...
modules/packetizer/mlp.c
View file @
68dbf6ec
...
...
@@ -133,7 +133,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_state
=
STATE_NOSYNC
;
date_Set
(
&
p_sys
->
end_date
,
0
);
p_sys
->
bytestream
=
block_BytestreamInit
(
);
block_BytestreamInit
(
&
p_sys
->
bytestream
);
p_sys
->
b_mlp
=
false
;
/* Set output properties */
...
...
modules/packetizer/mpeg4audio.c
View file @
68dbf6ec
...
...
@@ -206,7 +206,7 @@ static int OpenPacketizer( vlc_object_t *p_this )
/* Misc init */
p_sys
->
i_state
=
STATE_NOSYNC
;
date_Set
(
&
p_sys
->
end_date
,
0
);
p_sys
->
bytestream
=
block_BytestreamInit
(
);
block_BytestreamInit
(
&
p_sys
->
bytestream
);
p_sys
->
b_latm_cfg
=
false
;
/* Set output properties */
...
...
modules/packetizer/packetizer_helper.h
View file @
68dbf6ec
...
...
@@ -68,7 +68,7 @@ static inline void packetizer_Init( packetizer_t *p_pack,
void
*
p_private
)
{
p_pack
->
i_state
=
STATE_NOSYNC
;
p_pack
->
bytestream
=
block_BytestreamInit
(
);
block_BytestreamInit
(
&
p_pack
->
bytestream
);
p_pack
->
i_offset
=
0
;
p_pack
->
b_flushing
=
false
;
...
...
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