]> git.sesse.net Git - vlc/commitdiff
s/vout_Destroy/vlc_object_release/ - A cat is a cat
authorRafaël Carré <funman@videolan.org>
Sun, 1 Jun 2008 11:49:42 +0000 (13:49 +0200)
committerRafaël Carré <funman@videolan.org>
Sun, 1 Jun 2008 17:16:56 +0000 (19:16 +0200)
19 files changed:
doc/developer/video_output.xml
include/vlc_vout.h
modules/gui/minimal_macosx/VLCOpenGLVoutView.m
modules/video_filter/clone.c
modules/video_filter/crop.c
modules/video_filter/deinterlace.c
modules/video_filter/logo.c
modules/video_filter/magnify.c
modules/video_filter/opencv_wrapper.c
modules/video_filter/panoramix.c
modules/video_filter/puzzle.c
modules/video_filter/transform.c
modules/video_filter/wall.c
modules/visualization/goom.c
src/control/video.c
src/libvlc.c
src/libvlccore.sym
src/playlist/engine.c
src/video_output/video_output.c

index 3cdb855e508e9966fc2ad338438d2461825ee4d5..f609b8db1f7c64c9e263ed4270ecc73e1cf72938 100644 (file)
@@ -186,11 +186,6 @@ functions :
       Frees optional picture buffers.
       </para> </listitem>
 
-      <listitem> <para> <function> vout_Destroy </function> <parameter>
-      ( vout_thread_t *p_vout ) </parameter> :
-      Unmaps the window and frees all allocated resources.
-      </para> </listitem>
-
       <listitem> <para> <type> int </type> <function> vout_Manage
       </function> <parameter> ( vout_thread_t *p_vout ) </parameter> :
       Manages events (including for instance resize events).
index f148d3653fb8ccdb96442483eea9f37d84db4051..4c6b35b7e9eabeccd8c6554b91f7eec5dcc5b7b5 100644 (file)
@@ -568,7 +568,6 @@ struct vout_thread_t
 VLC_EXPORT( vout_thread_t *, __vout_Request,    ( vlc_object_t *, vout_thread_t *, video_format_t * ) );
 #define vout_Create(a,b) __vout_Create(VLC_OBJECT(a),b)
 VLC_EXPORT( vout_thread_t *, __vout_Create,       ( vlc_object_t *, video_format_t * ) );
-VLC_EXPORT( void,            vout_Destroy,        ( vout_thread_t * ) );
 VLC_EXPORT( int, vout_VarCallback, ( vlc_object_t *, const char *, vlc_value_t, vlc_value_t, void * ) );
 
 VLC_EXPORT( int,             vout_ChromaCmp,      ( uint32_t, uint32_t ) );
index 99fd2cb249bcdfcdebdf9b96bb7354c621b5b529..31e53d06439645623b37d6af17481dc968312baa 100644 (file)
@@ -290,7 +290,7 @@ void cocoaglvoutviewUnlock( vout_thread_t * p_vout )
     {
         vlc_object_detach( p_vout );
         vlc_object_release( p_vout );
-        vout_Destroy( (vout_thread_t *)p_vout );
+        vlc_object_release( p_vout );
     }
     [objectLock unlock];
 }
index 9343f731dd8d845f3870a8525c4d6834c995db03..1cbfb4790d08501535c43c2c9274c0deca485b41 100644 (file)
@@ -391,7 +391,7 @@ static void RemoveAllVout( vout_thread_t *p_vout )
          DEL_CALLBACKS( p_vout->p_sys->pp_vout[p_vout->p_sys->i_clones],
                         SendEvents );
          vlc_object_detach( p_vout->p_sys->pp_vout[p_vout->p_sys->i_clones] );
-         vout_Destroy( p_vout->p_sys->pp_vout[p_vout->p_sys->i_clones] );
+         vlc_object_release( p_vout->p_sys->pp_vout[p_vout->p_sys->i_clones] );
     }
 }
 
index 689e7c22bac571fc5c1e5f67ad1d850c7569a274..d7a24219cdb56ea8c217ff6fd58d696377c2d2de 100644 (file)
@@ -424,7 +424,7 @@ static void Destroy( vlc_object_t *p_this )
     {
         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 );
@@ -458,7 +458,7 @@ static int Manage( vout_thread_t *p_vout )
     msg_Info( p_vout, "ratio %d",  p_vout->p_sys->i_aspect / 432);
 #endif
 
-    vout_Destroy( p_vout->p_sys->p_vout );
+    vlc_object_release( p_vout->p_sys->p_vout );
 
     fmt.i_width = fmt.i_visible_width = p_vout->p_sys->i_width;
     fmt.i_height = fmt.i_visible_height = p_vout->p_sys->i_height;
index 6eecac31e18d4d4a57a5aa6aafa143898c6329a9..9ebbf51e81ba666cdc757ba889699dc5cff1da60 100644 (file)
@@ -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 );
index 20f7386bc54f2c23f999c33496012e1105a455df..6fcedca0213adf294ff7eb4e6eacf00a26d12590 100644 (file)
@@ -491,7 +491,7 @@ static void End( vout_thread_t *p_vout )
 
     DEL_CALLBACKS( p_sys->p_vout, SendEvents );
     vlc_object_detach( p_sys->p_vout );
-    vout_Destroy( p_sys->p_vout );
+    vlc_object_release( p_sys->p_vout );
 
     if( p_sys->p_blend->p_module )
         module_Unneed( p_sys->p_blend, p_sys->p_blend->p_module );
index 7a77573c3e5b4a3357a1b616c94eeda6db382015..12eb0615912e8bc11495af7339830f8a30a02125 100644 (file)
@@ -212,7 +212,7 @@ static void Destroy( vlc_object_t *p_this )
     {
         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 );
     }
 
     image_HandlerDelete( p_vout->p_sys->p_image );
index 1095f6cf06a0b5adcf12bd7e6f8c81c0e763b897..db6b4a527fc99cbbc90e4714d28c474a8e397644 100644 (file)
@@ -409,7 +409,7 @@ static void Destroy( vlc_object_t *p_this )
     {
         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 );
index 1ac44f69cd6569163ef948aec4efa50eea41e757..7a08fe68ad787b79ab17506a60ba21d9dd4e5fd4 100644 (file)
@@ -900,7 +900,7 @@ static void Destroy( vlc_object_t *p_this )
 #ifdef GLOBAL_OUTPUT
     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);
 #endif
 
@@ -1914,7 +1914,7 @@ static void RemoveAllVout( vout_thread_t *p_vout )
                  SendEvents );
              vlc_object_detach(
                  p_vout->p_sys->pp_vout[ p_vout->p_sys->i_vout ].p_vout );
-             vout_Destroy(
+             vlc_object_release(
                  p_vout->p_sys->pp_vout[ p_vout->p_sys->i_vout ].p_vout );
          }
     }
index d9f07e31acb9fa3e723c21d37a963a1652970c82..c2bcfd76ea46a712a34f45731e0885659c490c28 100644 (file)
@@ -334,7 +334,7 @@ static void Destroy( vlc_object_t *p_this )
     {
         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 );
     }
 
     image_HandlerDelete( p_vout->p_sys->p_image );
index 3b2266ca5c77d9badd37fd4777bcb5f6a1e4d48b..40eab9db004f89a6dfb51a95acbd4f3e87abe5b6 100644 (file)
@@ -300,7 +300,7 @@ static void Destroy( vlc_object_t *p_this )
     {
         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 );
index 9327b9cb4b4a160c1fc8128e0cf4a1b1a56b47be..96c82f40bb76faa140dc90c12de70eb7ff42025b 100644 (file)
@@ -589,7 +589,7 @@ static void RemoveAllVout( vout_thread_t *p_vout )
                  SendEvents );
              vlc_object_detach(
                  p_vout->p_sys->pp_vout[ p_vout->p_sys->i_vout ].p_vout );
-             vout_Destroy(
+             vlc_object_release(
                  p_vout->p_sys->pp_vout[ p_vout->p_sys->i_vout ].p_vout );
          }
     }
index b8190251a27eec89e1230f63b40430a1e8573be9..9382b80494bda39540c4ad08c996bd466fb3b8bf 100644 (file)
@@ -196,7 +196,7 @@ static int Open( vlc_object_t *p_this )
                            VLC_THREAD_PRIORITY_LOW, false ) )
     {
         msg_Err( p_filter, "cannot lauch goom thread" );
-        vout_Destroy( p_thread->p_vout );
+        vlc_object_release( p_thread->p_vout );
         vlc_mutex_destroy( &p_thread->lock );
         vlc_cond_destroy( &p_thread->wait );
         free( p_thread->psz_title );
index 94902614166ce7f8ca50af990a72f05e225bf3c0..91ec92aaa4fd6f4a96a8aaae0d2e7db1d6927724 100644 (file)
@@ -573,7 +573,7 @@ int libvlc_video_destroy( libvlc_media_player_t *p_mi,
     vout_thread_t *p_vout = GetVout( p_mi, p_e );
     vlc_object_detach( p_vout );
     vlc_object_release( p_vout );
-    vout_Destroy( p_vout );
+    vlc_object_release( p_vout );
 
     return 0;
 }
index 90e2a791b204d7471ce73d8347e729235e76bdc6..4871e2a93bab14d0e2c9c005b4e97cfad47e1944 100644 (file)
@@ -978,7 +978,7 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     {
         vlc_object_detach( p_vout );
         vlc_object_release( p_vout );
-        vout_Destroy( p_vout );
+        vlc_object_release( p_vout );
     }
 
     stats_TimersDumpAll( p_libvlc );
index bd77501ad42f65e29627fd10425e8639dabc78cf..eb996393f9794735fb0e5345c8944ef4220f366b 100644 (file)
@@ -470,7 +470,6 @@ __vout_CopyPicture
 __vout_Create
 vout_CreatePicture
 vout_DatePicture
-vout_Destroy
 vout_DestroyPicture
 vout_DisplayPicture
 vout_EnableFilter
index b8731e6d77085687a35809b4447d19c7ae5732ef..1f195f5b971ae21798adc103a46ad1354059b6d4 100644 (file)
@@ -206,7 +206,7 @@ static void ObjectGarbageCollector( playlist_t *p_playlist, bool b_force )
         msg_Dbg( p_playlist, "garbage collector destroying 1 vout" );
         vlc_object_detach( p_obj );
         vlc_object_release( p_obj );
-        vout_Destroy( (vout_thread_t *)p_obj );
+        vlc_object_release( (vout_thread_t *)p_obj );
     }
 #ifdef ENABLE_SOUT
     while( ( p_obj = vlc_object_find( p_playlist, VLC_OBJECT_SOUT,
@@ -445,7 +445,7 @@ void playlist_LastLoop( playlist_t *p_playlist )
     {
         vlc_object_detach( p_obj );
         vlc_object_release( p_obj );
-        vout_Destroy( (vout_thread_t *)p_obj );
+        vlc_object_release( (vout_thread_t *)p_obj );
     }
 
     while( p_playlist->i_sds )
index a548530e98a6a002ffd3112e461afd843560e56c..afc82a331100ba80e1e136eabb9bafd51fb16dc6 100644 (file)
@@ -198,7 +198,7 @@ vout_thread_t *__vout_Request( vlc_object_t *p_this, vout_thread_t *p_vout,
         {
             /* We are not interested in this format, close this vout */
             vlc_object_release( p_vout );
-            vout_Destroy( p_vout );
+            vlc_object_release( p_vout );
             p_vout = NULL;
         }
         else
@@ -471,22 +471,6 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
     return p_vout;
 }
 
-/*****************************************************************************
- * vout_Destroy: destroys a previously created video output
- *****************************************************************************
- * Destroy a terminated thread.
- * The function will request a destruction of the specified thread. If pi_error
- * is NULL, it will return once the thread is destroyed. Else, it will be
- * update using one of the THREAD_* constants.
- *****************************************************************************/
-void vout_Destroy( vout_thread_t *p_vout )
-{
-    /* XXX: should go in the destructor */
-    var_Destroy( p_vout, "intf-change" );
-
-    vlc_object_release( p_vout );
-}
-
 static void vout_Destructor( vlc_object_t * p_this )
 {
     vout_thread_t *p_vout = (vout_thread_t *)p_this;