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
26bebc75
Commit
26bebc75
authored
Jun 10, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/access/fake.c: New --fake-id option to specify the fake ES ID, for
use with #duplicate{}.
parent
817acb78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/access/fake.c
modules/access/fake.c
+10
-1
No files found.
modules/access/fake.c
View file @
26bebc75
...
...
@@ -43,7 +43,12 @@ static void Close( vlc_object_t * );
"value should be set in millisecond units." )
#define FPS_TEXT N_("Framerate")
#define FPS_LONGTEXT N_( \
"Specify the number of frames per second (eg. 24, 25, 29.97, 30).")
"Specifies the number of frames per second (eg. 24, 25, 29.97, 30).")
#define ID_TEXT N_("ID")
#define ID_LONGTEXT N_( \
"Allows you to set the ID of the fake elementary stream for use in " \
"#duplicate{} constructs (default 0).")
vlc_module_begin
();
set_shortname
(
_
(
"Fake"
)
);
...
...
@@ -54,6 +59,7 @@ vlc_module_begin();
add_integer
(
"fake-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
VLC_TRUE
);
add_float
(
"fake-fps"
,
25
.
0
,
NULL
,
FPS_TEXT
,
FPS_LONGTEXT
,
VLC_TRUE
);
add_integer
(
"fake-id"
,
0
,
NULL
,
ID_TEXT
,
ID_LONGTEXT
,
VLC_TRUE
);
add_shortcut
(
"fake"
);
set_capability
(
"access_demux"
,
0
);
...
...
@@ -103,7 +109,10 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_last_pts
=
0
;
/* Declare elementary stream */
var_Create
(
p_demux
,
"fake-id"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Get
(
p_demux
,
"fake-id"
,
&
val
);
es_format_Init
(
&
fmt
,
VIDEO_ES
,
VLC_FOURCC
(
'f'
,
'a'
,
'k'
,
'e'
)
);
fmt
.
i_id
=
val
.
i_int
;
p_sys
->
p_es_video
=
es_out_Add
(
p_demux
->
out
,
&
fmt
);
/* Update default_pts to a suitable value for access */
...
...
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