Skip to content

Commit

Permalink
[tinyPy] Add method to query the default filename extension for the c…
Browse files Browse the repository at this point in the history
…urrent muxer
  • Loading branch information
eumagga0x2a committed Jan 28, 2021
1 parent e5d7740 commit ad97816
Show file tree
Hide file tree
Showing 4 changed files with 359 additions and 321 deletions.
13 changes: 13 additions & 0 deletions avidemux_plugins/ADM_scriptEngines/tinyPy/src/ADM_pyAvidemux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,4 +345,17 @@ char *pyGetEnv(IEditor *editor,const char *key)
return strdup(src);
}

/**
* \fn pyGetContainerEx
* \brief Get the default filename extension for the current muxer
*/
char *pyGetContainerEx(IEditor *editor)
{
ADM_dynMuxer *container = editor->getCurrentMuxer();
if(!container)
return NULL;
if(!container->defaultExtension)
return NULL;
return strdup(container->defaultExtension);
}
// EOF
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ int pySetNormalize(IEditor *, int track, int mode, int gain100);
int pySetNormalize2(IEditor *, int track, int mode, int gain100, int maxlevel);
int pySetFilm2Pal(IEditor *,int track,int onoff);
int pySetPal2Film(IEditor *,int track,int onoff);
/* Output */
char *pyGetContainerEx(IEditor *editor);
/* Info */
int pyGetFps1000(IEditor *editor);
int pyGetWidth(IEditor *editor);
Expand Down
Loading

0 comments on commit ad97816

Please sign in to comment.