Changeset 26bebc750b94acd1387272c8aa1820003ffcd411
- Timestamp:
- 10/06/05 17:06:29
(3 years ago)
- Author:
- Christophe Massiot <massiot@videolan.org>
- git-committer:
- Christophe Massiot <massiot@videolan.org> 1118415989 +0000
- git-parent:
[817acb78b4b8e2f8e6760b2ab5d99949b04925d9]
- git-author:
- Christophe Massiot <massiot@videolan.org> 1118415989 +0000
- Message:
- modules/access/fake.c: New --fake-id option to specify the fake ES ID, for
use with #duplicate{}.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r0aaa609 |
r26bebc7 |
|
| 44 | 44 | #define FPS_TEXT N_("Framerate") |
|---|
| 45 | 45 | #define FPS_LONGTEXT N_( \ |
|---|
| 46 | | "Specify the number of frames per second (eg. 24, 25, 29.97, 30).") |
|---|
| | 46 | "Specifies the number of frames per second (eg. 24, 25, 29.97, 30).") |
|---|
| | 47 | #define ID_TEXT N_("ID") |
|---|
| | 48 | #define ID_LONGTEXT N_( \ |
|---|
| | 49 | "Allows you to set the ID of the fake elementary stream for use in " \ |
|---|
| | 50 | "#duplicate{} constructs (default 0).") |
|---|
| | 51 | |
|---|
| 47 | 52 | |
|---|
| 48 | 53 | vlc_module_begin(); |
|---|
| … | … | |
| 55 | 60 | CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); |
|---|
| 56 | 61 | add_float( "fake-fps", 25.0, NULL, FPS_TEXT, FPS_LONGTEXT, VLC_TRUE ); |
|---|
| | 62 | add_integer( "fake-id", 0, NULL, ID_TEXT, ID_LONGTEXT, VLC_TRUE ); |
|---|
| 57 | 63 | |
|---|
| 58 | 64 | add_shortcut( "fake" ); |
|---|
| … | … | |
| 104 | 110 | |
|---|
| 105 | 111 | /* Declare elementary stream */ |
|---|
| | 112 | var_Create( p_demux, "fake-id", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT ); |
|---|
| | 113 | var_Get( p_demux, "fake-id", &val ); |
|---|
| 106 | 114 | es_format_Init( &fmt, VIDEO_ES, VLC_FOURCC('f', 'a', 'k', 'e') ); |
|---|
| | 115 | fmt.i_id = val.i_int; |
|---|
| 107 | 116 | p_sys->p_es_video = es_out_Add( p_demux->out, &fmt ); |
|---|
| 108 | 117 | |
|---|