mirror of https://github.com/mpv-player/mpv
100L m_option_copy should use the copy callback and not the set one.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17457 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6d5a941a6e
commit
169df2ac09
|
@ -259,7 +259,7 @@ m_option_set(m_option_t* opt,void* dst, void* src) {
|
|||
inline static void
|
||||
m_option_copy(m_option_t* opt,void* dst, void* src) {
|
||||
if(opt->type->copy)
|
||||
opt->type->set(opt,dst,src);
|
||||
opt->type->copy(opt,dst,src);
|
||||
else if(opt->type->size > 0)
|
||||
memcpy(dst,src,opt->type->size);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue