]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/deinterlace.c
Factorize some code in the filters.
[vlc] / modules / video_filter / deinterlace.c
index e65a7dfce378949a4747c830cb0ee1ec4ecd3fea..9ebbf51e81ba666cdc757ba889699dc5cff1da60 100644 (file)
@@ -34,7 +34,7 @@
 #   include <altivec.h>
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_vout.h>
 #include <vlc_sout.h>
@@ -433,7 +433,7 @@ static void End( vout_thread_t *p_vout )
     {
         DEL_CALLBACKS( p_vout->p_sys->p_vout, SendEvents );
         vlc_object_detach( p_vout->p_sys->p_vout );
-        vout_Destroy( p_vout->p_sys->p_vout );
+        vlc_object_release( p_vout->p_sys->p_vout );
     }
 
     DEL_PARENT_CALLBACKS( SendEventsToChild );
@@ -2067,7 +2067,7 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd,
     DEL_CALLBACKS( p_vout->p_sys->p_vout, SendEvents );
 
     vlc_object_detach( p_vout->p_sys->p_vout );
-    vout_Destroy( p_vout->p_sys->p_vout );
+    vlc_object_release( p_vout->p_sys->p_vout );
 
     /* Try to open a new video output */
     p_vout->p_sys->p_vout = SpawnRealVout( p_vout );