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
1eee55ff
Commit
1eee55ff
authored
Apr 25, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed BLOCK_TS_INVALID to VLC_TS_INVALID and put it in vlc_config.h
Sorry for the previous one.
parent
4e845887
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
include/vlc_block.h
include/vlc_block.h
+1
-5
include/vlc_config.h
include/vlc_config.h
+4
-1
src/misc/block.c
src/misc/block.c
+2
-1
No files found.
include/vlc_block.h
View file @
1eee55ff
...
...
@@ -37,7 +37,7 @@
* - i_flags may not always be set (ie could be 0, even for a key frame
* it depends where you receive the buffer (before/after a packetizer
* and the demux/packetizer implementations.
* - i_dts/i_pts could be
BLOCK
_TS_INVALID, it means no pts/dts
* - i_dts/i_pts could be
VLC
_TS_INVALID, it means no pts/dts
* - i_length: length in microseond of the packet, can be null except in the
* sout where it is mandatory.
* - i_rate 0 or a valid input rate, look at vlc_input.h
...
...
@@ -90,10 +90,6 @@ typedef struct block_sys_t block_sys_t;
#define BLOCK_FLAG_PRIVATE_MASK 0xff000000
#define BLOCK_FLAG_PRIVATE_SHIFT 24
/* All timestamp below or equal to this define are invalid/unset
* XXX the numerical value is 0 because of historical reason and will change.*/
#define BLOCK_TS_INVALID (0)
typedef
void
(
*
block_free_t
)
(
block_t
*
);
struct
block_t
...
...
include/vlc_config.h
View file @
1eee55ff
...
...
@@ -38,8 +38,11 @@
* General configuration
*****************************************************************************/
#define CLOCK_FREQ 1000000
/* All timestamp below or equal to this define are invalid/unset
* XXX the numerical value is 0 because of historical reason and will change.*/
#define VLC_TS_INVALID (0)
#define CLOCK_FREQ 1000000
/* When creating or destroying threads in blocking mode, delay to poll thread
* status */
...
...
src/misc/block.c
View file @
1eee55ff
...
...
@@ -59,7 +59,8 @@ void block_Init( block_t *restrict b, void *buf, size_t size )
/* Fill all fields to their default */
b
->
p_next
=
NULL
;
b
->
i_flags
=
0
;
b
->
i_pts
=
b
->
i_dts
=
BLOCK_TS_INVALID
;
b
->
i_pts
=
b
->
i_dts
=
VLC_TS_INVALID
;
b
->
i_length
=
0
;
b
->
i_rate
=
0
;
b
->
p_buffer
=
buf
;
...
...
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