Merge pull request #313 from dorianj/master

drdynvc: make audin and tsmf config data parsers recognize path-based plugin loading
This commit is contained in:
Marc-André Moreau 2011-12-27 07:58:50 -08:00
commit 62515cb028
2 changed files with 2 additions and 2 deletions

View File

@ -471,7 +471,7 @@ static boolean audin_process_plugin_data(IWTSPlugin* pPlugin, RDP_PLUGIN_DATA* d
AUDIN_PLUGIN* audin = (AUDIN_PLUGIN*) pPlugin;
RDP_PLUGIN_DATA default_data[2] = { { 0 }, { 0 } };
if (data->data[0] && strcmp((char*)data->data[0], "audin") == 0)
if (data->data[0] && (strcmp((char*)data->data[0], "audin") == 0 || strstr((char*)data->data[0], "/audin.") != NULL) )
{
if (data->data[1] && strcmp((char*)data->data[1], "format") == 0)
{

View File

@ -401,7 +401,7 @@ static void tsmf_process_plugin_data(IWTSPlugin* pPlugin, RDP_PLUGIN_DATA* data)
{
TSMF_PLUGIN* tsmf = (TSMF_PLUGIN*) pPlugin;
if (data->data[0] && strcmp((char*)data->data[0], "tsmf") == 0)
if (data->data[0] && ( strcmp((char*)data->data[0], "tsmf") == 0 || strstr((char*)data->data[0], "/tsmf.") != NULL) )
{
if (data->data[1] && strcmp((char*)data->data[1], "decoder") == 0)
{