[vlc-commits] commit: smem: mark options private or volatile as needed ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Tue Mar 30 13:40:00 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar 30 14:39:30 2010 +0300| [ebbd913f7f9f0f01c0c1058b801c011e32e9e238] | committer: Rémi Denis-Courmont 

smem: mark options private or volatile as needed

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

 modules/stream_out/smem.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/smem.c b/modules/stream_out/smem.c
index bed8bbe..7fd2d31 100644
--- a/modules/stream_out/smem.c
+++ b/modules/stream_out/smem.c
@@ -101,12 +101,19 @@ vlc_module_begin ()
     set_category( CAT_SOUT )
     set_subcategory( SUBCAT_SOUT_STREAM )
     add_string( SOUT_PREFIX_VIDEO "prerender-callback", "0", NULL, T_VIDEO_PRERENDER_CALLBACK, LT_VIDEO_PRERENDER_CALLBACK, true )
+        change_volatile()
     add_string( SOUT_PREFIX_AUDIO "prerender-callback", "0", NULL, T_AUDIO_PRERENDER_CALLBACK, LT_AUDIO_PRERENDER_CALLBACK, true )
+        change_volatile()
     add_string( SOUT_PREFIX_VIDEO "postrender-callback", "0", NULL, T_VIDEO_POSTRENDER_CALLBACK, LT_VIDEO_POSTRENDER_CALLBACK, true )
+        change_volatile()
     add_string( SOUT_PREFIX_AUDIO "postrender-callback", "0", NULL, T_AUDIO_POSTRENDER_CALLBACK, LT_AUDIO_POSTRENDER_CALLBACK, true )
+        change_volatile()
     add_string( SOUT_PREFIX_VIDEO "data", "0", NULL, T_VIDEO_DATA, LT_VIDEO_DATA, true )
+        change_volatile()
     add_string( SOUT_PREFIX_AUDIO "data", "0", NULL, T_AUDIO_DATA, LT_VIDEO_DATA, true )
-    add_bool( SOUT_CFG_PREFIX "time-sync", true, NULL, T_TIME_SYNC, LT_TIME_SYNC, true );
+        change_volatile()
+    add_bool( SOUT_CFG_PREFIX "time-sync", true, NULL, T_TIME_SYNC, LT_TIME_SYNC, true )
+        change_private()
     set_callbacks( Open, Close )
 vlc_module_end ()
 



More information about the vlc-commits mailing list