Commit 2ed5acfd authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Real Audio: Add support for RealPlayer 10/10GOLD .so

parent e5147c68
...@@ -276,7 +276,7 @@ static int OpenDll( decoder_t *p_dec ) ...@@ -276,7 +276,7 @@ static int OpenDll( decoder_t *p_dec )
"/usr/lib64/RealPlayer10GOLD/codecs", "/usr/lib64/RealPlayer10GOLD/codecs",
"/usr/lib/win32", "/usr/lib/win32",
"/usr/lib/codecs", "/usr/lib/codecs",
"/usr/local/lib/codecs" "/usr/local/lib/codecs",
#endif #endif
NULL, NULL,
NULL, NULL,
...@@ -290,11 +290,20 @@ static int OpenDll( decoder_t *p_dec ) ...@@ -290,11 +290,20 @@ static int OpenDll( decoder_t *p_dec )
for( i = 0; ppsz_path[i]; i++ ) for( i = 0; ppsz_path[i]; i++ )
{ {
/* Old format */
asprintf( &psz_dll, "%s/%4.4s.so.6.0", ppsz_path[i], asprintf( &psz_dll, "%s/%4.4s.so.6.0", ppsz_path[i],
(char *)&p_dec->fmt_in.i_codec ); (char *)&p_dec->fmt_in.i_codec );
i_result = OpenNativeDll( p_dec, ppsz_path[i], psz_dll ); i_result = OpenNativeDll( p_dec, ppsz_path[i], psz_dll );
free( psz_dll ); free( psz_dll );
if( i_result == VLC_SUCCESS ) return VLC_SUCCESS; if( i_result == VLC_SUCCESS ) return VLC_SUCCESS;
/* New format */
asprintf( &psz_dll, "%s/%4.4s.so", ppsz_path[i],
(char *)&p_dec->fmt_in.i_codec );
i_result = OpenNativeDll( p_dec, ppsz_path[i], psz_dll );
free( psz_dll );
if( i_result == VLC_SUCCESS ) return VLC_SUCCESS;
} }
#ifdef WIN32 #ifdef WIN32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment