Commit 17794b84 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

[Fake] Add a missing callback on fake-file-reload

When fake-file-reload is changed, you might want to renew the image.
Should Close #2230
parent d72aba04
...@@ -169,6 +169,7 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -169,6 +169,7 @@ static int OpenDecoder( vlc_object_t *p_this )
p_dec->p_sys->i_reload = (mtime_t)(val.i_int * 1000000); p_dec->p_sys->i_reload = (mtime_t)(val.i_int * 1000000);
p_dec->p_sys->i_next = (mtime_t)(p_dec->p_sys->i_reload + mdate()); p_dec->p_sys->i_next = (mtime_t)(p_dec->p_sys->i_reload + mdate());
} }
var_AddCallback( p_dec, "fake-file-reload", FakeCallback , p_dec );
psz_chroma = var_CreateGetString( p_dec, "fake-chroma" ); psz_chroma = var_CreateGetString( p_dec, "fake-chroma" );
if( strlen( psz_chroma ) != 4 ) if( strlen( psz_chroma ) != 4 )
......
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