Permalink
Browse files

Clean up loading library a bit

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
  • Loading branch information...
1 parent 6b7a990 commit c53f65f032e83d2b93cf977b79f9948acce6d086 @lemenkov committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/codec.erl
View
@@ -183,7 +183,7 @@ encode(Codec, {Payload, SampleRate, Channels, Resolution}) when is_pid(Codec), i
%%
load_library(Name) ->
- case erl_ddll:load_driver(code:lib_dir(rtplib) ++ "/priv/", Name) of
+ case erl_ddll:load_driver(code:lib_dir(rtplib, priv), Name) of
ok -> ok;
{error, already_loaded} -> ok;
{error, permanent} -> ok;

0 comments on commit c53f65f

Please sign in to comment.