[vlc-devel] commit: src/control/mediacontrol_audio_video.c: to create a generic object, (Olivier Aubert )

git version control git at videolan.org
Mon Jun 30 19:49:52 CEST 2008


vlc | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Jun 30 19:51:49 2008 +0200| [791b55cfb3a6f2562c69b0a8a094a0a3a6cf0ecb]

src/control/mediacontrol_audio_video.c: to create a generic object,
its size should be passed to vlc_object_create (instead of VLC_OBJECT_GENERIC)

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

 src/control/mediacontrol_audio_video.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/control/mediacontrol_audio_video.c b/src/control/mediacontrol_audio_video.c
index 2006c0d..047f05f 100644
--- a/src/control/mediacontrol_audio_video.c
+++ b/src/control/mediacontrol_audio_video.c
@@ -76,7 +76,7 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
     {
         RAISE_NULL( mediacontrol_InternalException, "No video output" );
     }
-    p_cache = vlc_object_create( p_input, VLC_OBJECT_GENERIC );
+    p_cache = vlc_object_create( p_input, sizeof( vlc_object_t ) );
     if( p_cache == NULL )
     {
         vlc_object_release( p_vout );




More information about the vlc-devel mailing list