[vlc-devel] commit: [Fake] Add a missing callback on fake-file-reload ( Jean-Baptiste Kempf )

git version control git at videolan.org
Mon Oct 20 23:01:53 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct 20 13:38:23 2008 +0200| [17794b843435b7f8444ad986072275f572bc7ed8] | committer: 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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17794b843435b7f8444ad986072275f572bc7ed8
---

 modules/codec/fake.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/codec/fake.c b/modules/codec/fake.c
index 6fcdaff..0409b70 100644
--- a/modules/codec/fake.c
+++ b/modules/codec/fake.c
@@ -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_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" );
     if( strlen( psz_chroma ) != 4 )




More information about the vlc-devel mailing list