Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
53c74579
Commit
53c74579
authored
Jun 01, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/vout_Destroy/vlc_object_release/ - A cat is a cat
parent
23293def
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
20 additions
and
43 deletions
+20
-43
doc/developer/video_output.xml
doc/developer/video_output.xml
+0
-5
include/vlc_vout.h
include/vlc_vout.h
+0
-1
modules/gui/minimal_macosx/VLCOpenGLVoutView.m
modules/gui/minimal_macosx/VLCOpenGLVoutView.m
+1
-1
modules/video_filter/clone.c
modules/video_filter/clone.c
+1
-1
modules/video_filter/crop.c
modules/video_filter/crop.c
+2
-2
modules/video_filter/deinterlace.c
modules/video_filter/deinterlace.c
+2
-2
modules/video_filter/logo.c
modules/video_filter/logo.c
+1
-1
modules/video_filter/magnify.c
modules/video_filter/magnify.c
+1
-1
modules/video_filter/opencv_wrapper.c
modules/video_filter/opencv_wrapper.c
+1
-1
modules/video_filter/panoramix.c
modules/video_filter/panoramix.c
+2
-2
modules/video_filter/puzzle.c
modules/video_filter/puzzle.c
+1
-1
modules/video_filter/transform.c
modules/video_filter/transform.c
+1
-1
modules/video_filter/wall.c
modules/video_filter/wall.c
+1
-1
modules/visualization/goom.c
modules/visualization/goom.c
+1
-1
src/control/video.c
src/control/video.c
+1
-1
src/libvlc.c
src/libvlc.c
+1
-1
src/libvlccore.sym
src/libvlccore.sym
+0
-1
src/playlist/engine.c
src/playlist/engine.c
+2
-2
src/video_output/video_output.c
src/video_output/video_output.c
+1
-17
No files found.
doc/developer/video_output.xml
View file @
53c74579
...
...
@@ -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).
...
...
include/vlc_vout.h
View file @
53c74579
...
...
@@ -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
)
);
...
...
modules/gui/minimal_macosx/VLCOpenGLVoutView.m
View file @
53c74579
...
...
@@ -290,7 +290,7 @@ void cocoaglvoutviewUnlock( vout_thread_t * p_vout )
{
vlc_object_detach
(
p_vout
);
vlc_object_release
(
p_vout
);
v
out_Destroy
(
(
vout_thread_t
*
)
p_vout
);
v
lc_object_release
(
p_vout
);
}
[
objectLock
unlock
];
}
...
...
modules/video_filter/clone.c
View file @
53c74579
...
...
@@ -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
]
);
v
out_Destroy
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_clones
]
);
v
lc_object_release
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_clones
]
);
}
}
...
...
modules/video_filter/crop.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
p_vout
->
p_sys
->
p_vout
);
v
lc_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
v
out_Destroy
(
p_vout
->
p_sys
->
p_vout
);
v
lc_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
;
...
...
modules/video_filter/deinterlace.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
p_vout
->
p_sys
->
p_vout
);
v
lc_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
);
v
out_Destroy
(
p_vout
->
p_sys
->
p_vout
);
v
lc_object_release
(
p_vout
->
p_sys
->
p_vout
);
/* Try to open a new video output */
p_vout
->
p_sys
->
p_vout
=
SpawnRealVout
(
p_vout
);
...
...
modules/video_filter/logo.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
p_sys
->
p_vout
);
v
lc_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
);
...
...
modules/video_filter/magnify.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
p_vout
->
p_sys
->
p_vout
);
v
lc_object_release
(
p_vout
->
p_sys
->
p_vout
);
}
image_HandlerDelete
(
p_vout
->
p_sys
->
p_image
);
...
...
modules/video_filter/opencv_wrapper.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
p_vout
->
p_sys
->
p_vout
);
v
lc_object_release
(
p_vout
->
p_sys
->
p_vout
);
}
DEL_PARENT_CALLBACKS
(
SendEventsToChild
);
...
...
modules/video_filter/panoramix.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
p_vout
->
p_sys
->
p_vout
);
v
lc_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
);
v
out_Destroy
(
v
lc_object_release
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_vout
].
p_vout
);
}
}
...
...
modules/video_filter/puzzle.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
p_vout
->
p_sys
->
p_vout
);
v
lc_object_release
(
p_vout
->
p_sys
->
p_vout
);
}
image_HandlerDelete
(
p_vout
->
p_sys
->
p_image
);
...
...
modules/video_filter/transform.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
p_vout
->
p_sys
->
p_vout
);
v
lc_object_release
(
p_vout
->
p_sys
->
p_vout
);
}
DEL_PARENT_CALLBACKS
(
SendEventsToChild
);
...
...
modules/video_filter/wall.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
v
lc_object_release
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_vout
].
p_vout
);
}
}
...
...
modules/visualization/goom.c
View file @
53c74579
...
...
@@ -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"
);
v
out_Destroy
(
p_thread
->
p_vout
);
v
lc_object_release
(
p_thread
->
p_vout
);
vlc_mutex_destroy
(
&
p_thread
->
lock
);
vlc_cond_destroy
(
&
p_thread
->
wait
);
free
(
p_thread
->
psz_title
);
...
...
src/control/video.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
p_vout
);
v
lc_object_release
(
p_vout
);
return
0
;
}
src/libvlc.c
View file @
53c74579
...
...
@@ -978,7 +978,7 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
{
vlc_object_detach
(
p_vout
);
vlc_object_release
(
p_vout
);
v
out_Destroy
(
p_vout
);
v
lc_object_release
(
p_vout
);
}
stats_TimersDumpAll
(
p_libvlc
);
...
...
src/libvlccore.sym
View file @
53c74579
...
...
@@ -470,7 +470,6 @@ __vout_CopyPicture
__vout_Create
vout_CreatePicture
vout_DatePicture
vout_Destroy
vout_DestroyPicture
vout_DisplayPicture
vout_EnableFilter
...
...
src/playlist/engine.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
(
vout_thread_t
*
)
p_obj
);
v
lc_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
);
v
out_Destroy
(
(
vout_thread_t
*
)
p_obj
);
v
lc_object_release
(
(
vout_thread_t
*
)
p_obj
);
}
while
(
p_playlist
->
i_sds
)
...
...
src/video_output/video_output.c
View file @
53c74579
...
...
@@ -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
);
v
out_Destroy
(
p_vout
);
v
lc_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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment