[vlc-devel] commit: remoteosd: remove unneded VLC_COMMON_MEMBERS. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Oct 20 19:10:59 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Oct 20 15:14:34 2009 +0200| [18d4cb241f4218ae67175ef4cce42cd79cf863a6] | committer: Rémi Duraffort
remoteosd: remove unneded VLC_COMMON_MEMBERS.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18d4cb241f4218ae67175ef4cce42cd79cf863a6
---
modules/video_filter/remoteosd.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/modules/video_filter/remoteosd.c b/modules/video_filter/remoteosd.c
index bb7b0af..260e9bb 100644
--- a/modules/video_filter/remoteosd.c
+++ b/modules/video_filter/remoteosd.c
@@ -202,8 +202,6 @@ static void vnc_encrypt_bytes( unsigned char *bytes, char *passwd );
*****************************************************************************/
struct filter_sys_t
{
- VLC_COMMON_MEMBERS
-
bool b_need_update; /* VNC picture is updated, do update the OSD*/
mtime_t i_vnc_poll_interval; /* Update the OSD menu every n ms */
@@ -253,10 +251,9 @@ static int CreateFilter ( vlc_object_t *p_this )
msg_Dbg( p_filter, "Creating vnc osd filter..." );
- p_filter->p_sys = p_sys = malloc( sizeof(*p_sys) );
+ p_filter->p_sys = p_sys = calloc( 1, sizeof(*p_sys) );
if( !p_filter->p_sys )
return VLC_ENOMEM;
- memset( p_sys, 0, sizeof(*p_sys) );
/* Populating struct */
vlc_mutex_init( &p_sys->lock );
More information about the vlc-devel
mailing list