From: Philip de N. <ph...@us...> - 2011-11-30 13:27:43
|
Update of /cvsroot/ingex/ingex/player/ingex_player In directory vz-cvs-4.sog:/tmp/cvs-serv10136 Modified Files: player.c Log Message: add commandline option to show the source names when starting the player Index: player.c =================================================================== RCS file: /cvsroot/ingex/ingex/player/ingex_player/player.c,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** player.c 27 Oct 2011 13:45:37 -0000 1.38 --- player.c 30 Nov 2011 13:27:41 -0000 1.39 *************** *** 936,939 **** --- 936,940 ---- fprintf(stderr, " Note: for both pload options, only component depth of final video track in MXF file is considered\n"); fprintf(stderr, " --osd-pos <pos> Set the position of the player state OSD. Valid values are 'top', 'middle' and 'bottom'. Default is 'bottom'\n"); + fprintf(stderr, " --show-src-names Show the source names in the OSD\n"); fprintf(stderr, "\n"); fprintf(stderr, "Inputs:\n"); *************** *** 1110,1113 **** --- 1111,1115 ---- const char *windowTitle = DEFAULT_WINDOW_TITLE; int multipleMXFInputs = 0; + int showSourceNames = 0; memset(inputs, 0, sizeof(inputs)); *************** *** 2137,2140 **** --- 2139,2147 ---- cmdlnIndex += 2; } + else if (strcmp(argv[cmdlnIndex], "--show-src-names") == 0) + { + showSourceNames = 1; + cmdlnIndex++; + } else if (strcmp(argv[cmdlnIndex], "-m") == 0 || strcmp(argv[cmdlnIndex], "--mxf") == 0) *************** *** 3457,3460 **** --- 3464,3470 ---- + /* show the source names in the OSD */ + mc_show_source_name(ply_get_media_control(g_player.mediaPlayer), showSourceNames); + /* start playing... */ |