]> git.sesse.net Git - vlc/blobdiff - src/control/mediacontrol_audio_video.c
input: Fix warnings.
[vlc] / src / control / mediacontrol_audio_video.c
index 2006c0d111f796a5812f6ccea5aac2c95f7d19d8..e139553c4168bfc51afbf1a56418f1e6258799d1 100644 (file)
@@ -55,6 +55,7 @@ mediacontrol_snapshot( mediacontrol_Instance *self,
                        const mediacontrol_Position * a_position,
                        mediacontrol_Exception *exception )
 {
+    (void)a_position;
     vlc_object_t* p_cache;
     vout_thread_t* p_vout;
     input_thread_t *p_input;
@@ -76,7 +77,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 );