Ignore:
Timestamp:
Mar 27, 2024, 10:32:40 PM (17 months ago)
Author:
gyoung
Message:

Changes to avoid opening winos2/mplayer.exe; Add avi, mov and jpeg to the file types opened by a modern video player. Use the generic video icon when the modern video player is used; quiet the screen when mplayer is used; get mplayer and ffplay to close when video is finished

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/classes/c/c_common/helper.c

    r104 r165  
    5353
    5454HMODULE queryModuleHandle(void);
    55 
     55void writeLog(const char* chrFormat, ...);
    5656
    5757MRESULT EXPENTRY appTerminateHandlerProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
     
    102102  }
    103103  /* Start the application */
    104   happ = WinStartApp( hwndAppTerminateHandler, &pDetails,NULL, NULL, SAF_INSTALLEDCMDLINE);
    105   // happ = WinStartApp( hwndAppTerminateHandler, &pDetails, parameters, NULL, 0);
     104  if(strstr(strlwr(parameters), "mplayer") /*|| strstr(strlwr(parameters), "ffplay")*/)
     105    happ = WinStartApp( hwndAppTerminateHandler, &pDetails, NULL, NULL, SAF_INSTALLEDCMDLINE | SAF_MINIMIZED);
     106  else
     107    happ = WinStartApp( hwndAppTerminateHandler, &pDetails, NULL, NULL, SAF_INSTALLEDCMDLINE);
     108  //happ = WinStartApp( hwndAppTerminateHandler, &pDetails, parameters, NULL, 0);
    106109  if(happ) {
    107110    /* Application started. Add the object to inuse list. */
Note: See TracChangeset for help on using the changeset viewer.