Changeset 26bebc750b94acd1387272c8aa1820003ffcd411

Show
Ignore:
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
  • modules/access/fake.c

    r0aaa609 r26bebc7  
    4444#define FPS_TEXT N_("Framerate") 
    4545#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 
    4752 
    4853vlc_module_begin(); 
     
    5560                 CACHING_TEXT, CACHING_LONGTEXT, VLC_TRUE ); 
    5661    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 ); 
    5763 
    5864    add_shortcut( "fake" ); 
     
    104110 
    105111    /* Declare elementary stream */ 
     112    var_Create( p_demux, "fake-id", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT ); 
     113    var_Get( p_demux, "fake-id", &val ); 
    106114    es_format_Init( &fmt, VIDEO_ES, VLC_FOURCC('f', 'a', 'k', 'e') ); 
     115    fmt.i_id = val.i_int; 
    107116    p_sys->p_es_video = es_out_Add( p_demux->out, &fmt ); 
    108117