drdynvc: make audin and tsmf config data parsers recognize path-based plugin loading

This commit is contained in:
Dorian Johnson 2011-12-27 09:55:00 -06:00
parent 882880d0c9
commit 6dae926d86
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)
{