Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d926bc98
Commit
d926bc98
authored
Jul 17, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout: Rename vout_Destroy to vout_CloseAndDestroy.
parent
6d4e9224
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
41 additions
and
25 deletions
+41
-25
include/vlc_vout.h
include/vlc_vout.h
+20
-4
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
+1
-1
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
src/libvlccore.sym
src/libvlccore.sym
+1
-1
src/video_output/video_output.c
src/video_output/video_output.c
+8
-8
No files found.
include/vlc_vout.h
View file @
d926bc98
...
...
@@ -536,7 +536,8 @@ struct vout_thread_t
*
* You can call vout_Request on a vout created by vout_Create or by a previous
* call to vout_Request.
* You can release the returned value either by vout_Request or vout_Destroy.
* You can release the returned value either by vout_Request or vout_Close()
* followed by a vlc_object_release() or shorter vout_CloseAndRelease()
*
* \param p_this a vlc object
* \param p_vout a vout candidate
...
...
@@ -560,11 +561,26 @@ VLC_EXPORT( vout_thread_t *, __vout_Request, ( vlc_object_t *p_this, vout_thr
VLC_EXPORT
(
vout_thread_t
*
,
__vout_Create
,
(
vlc_object_t
*
p_this
,
video_format_t
*
p_fmt
)
);
/**
* This function will destroy a vout created by vout_Create or vout_Request.
* This function will close a vout created by vout_Create or vout_Request.
* The associated vout module is closed.
* Note: It is not released yet, you'll have to call vlc_object_release()
* or use the convenient vout_CloseAndRelease().
*
* \param p_vout the vout to
destroy
* \param p_vout the vout to
close
*/
VLC_EXPORT
(
void
,
vout_Destroy
,
(
vout_thread_t
*
p_vout
)
);
VLC_EXPORT
(
void
,
vout_Close
,
(
vout_thread_t
*
p_vout
)
);
/**
* This function will close a vout created by vout_Create
* and then release it.
*
* \param p_vout the vout to close and release
*/
static
inline
void
vout_CloseAndRelease
(
vout_thread_t
*
p_vout
)
{
vout_Close
(
p_vout
);
vlc_object_release
(
p_vout
);
}
/* */
VLC_EXPORT
(
int
,
vout_ChromaCmp
,
(
uint32_t
,
uint32_t
)
);
...
...
modules/video_filter/clone.c
View file @
d926bc98
...
...
@@ -387,7 +387,7 @@ static void RemoveAllVout( vout_thread_t *p_vout )
--
p_vout
->
p_sys
->
i_clones
;
DEL_CALLBACKS
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_clones
],
SendEvents
);
vout_
Destroy
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_clones
]
);
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_clones
]
);
}
}
...
...
modules/video_filter/crop.c
View file @
d926bc98
...
...
@@ -412,7 +412,7 @@ static void End( vout_thread_t *p_vout )
}
if
(
p_vout
->
p_sys
->
p_vout
)
vout_
Destroy
(
p_vout
->
p_sys
->
p_vout
);
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
p_vout
);
}
/*****************************************************************************
...
...
@@ -456,7 +456,7 @@ static int Manage( vout_thread_t *p_vout )
if
(
p_vout
->
p_sys
->
p_vout
)
{
DEL_CALLBACKS
(
p_vout
->
p_sys
->
p_vout
,
SendEvents
);
vout_
Destroy
(
p_vout
->
p_sys
->
p_vout
);
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
p_vout
);
}
fmt
.
i_width
=
fmt
.
i_visible_width
=
p_vout
->
p_sys
->
i_width
;
...
...
modules/video_filter/deinterlace.c
View file @
d926bc98
...
...
@@ -433,7 +433,7 @@ static void End( vout_thread_t *p_vout )
}
if
(
p_vout
->
p_sys
->
p_vout
)
vout_
Destroy
(
p_vout
->
p_sys
->
p_vout
);
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
p_vout
);
}
/*****************************************************************************
...
...
@@ -2063,7 +2063,7 @@ static int FilterCallback( vlc_object_t *p_this, char const *psz_cmd,
if
(
p_vout
->
p_sys
->
p_vout
)
{
DEL_CALLBACKS
(
p_vout
->
p_sys
->
p_vout
,
SendEvents
);
vout_
Destroy
(
p_vout
->
p_sys
->
p_vout
);
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
p_vout
);
}
/* Try to open a new video output */
...
...
modules/video_filter/logo.c
View file @
d926bc98
...
...
@@ -489,7 +489,7 @@ static void End( vout_thread_t *p_vout )
var_DelCallback
(
p_sys
->
p_vout
,
"mouse-x"
,
MouseEvent
,
p_vout
);
var_DelCallback
(
p_sys
->
p_vout
,
"mouse-y"
,
MouseEvent
,
p_vout
);
vout_
Destroy
(
p_sys
->
p_vout
);
vout_
CloseAndRelease
(
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 @
d926bc98
...
...
@@ -201,7 +201,7 @@ static void End( vout_thread_t *p_vout )
var_DelCallback
(
p_vout
->
p_sys
->
p_vout
,
"mouse-y"
,
MouseEvent
,
p_vout
);
var_DelCallback
(
p_vout
->
p_sys
->
p_vout
,
"mouse-clicked"
,
MouseEvent
,
p_vout
);
vout_
Destroy
(
p_vout
->
p_sys
->
p_vout
);
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
p_vout
);
}
/*****************************************************************************
...
...
modules/video_filter/opencv_wrapper.c
View file @
d926bc98
...
...
@@ -395,7 +395,7 @@ static void End( vout_thread_t *p_vout )
p_vout
->
p_sys
->
p_opencv
=
NULL
;
}
vout_
Destroy
(
p_vout
->
p_sys
->
p_vout
)
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
p_vout
)
}
/*****************************************************************************
...
...
modules/video_filter/panoramix.c
View file @
d926bc98
...
...
@@ -1903,7 +1903,7 @@ static void RemoveAllVout( vout_thread_t *p_vout )
DEL_CALLBACKS
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_vout
].
p_vout
,
SendEvents
);
vout_
Destroy
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_vout
].
p_vout
);
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_vout
].
p_vout
);
}
}
}
...
...
modules/video_filter/puzzle.c
View file @
d926bc98
...
...
@@ -304,7 +304,7 @@ static void End( vout_thread_t *p_vout )
var_DelCallback
(
p_vout
->
p_sys
->
p_vout
,
"mouse-y"
,
MouseEvent
,
p_vout
);
var_DelCallback
(
p_vout
->
p_sys
->
p_vout
,
"mouse-clicked"
,
MouseEvent
,
p_vout
);
vout_
Destroy
(
p_vout
->
p_sys
->
p_vout
);
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
p_vout
);
}
#define SHUFFLE_WIDTH 81
...
...
modules/video_filter/transform.c
View file @
d926bc98
...
...
@@ -287,7 +287,7 @@ static void End( vout_thread_t *p_vout )
free
(
PP_OUTPUTPICTURE
[
i_index
]
->
p_data_orig
);
}
vout_
Destroy
(
p_vout
->
p_sys
->
p_vout
);
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
p_vout
);
}
/*****************************************************************************
...
...
modules/video_filter/wall.c
View file @
d926bc98
...
...
@@ -584,7 +584,7 @@ static void RemoveAllVout( vout_thread_t *p_vout )
DEL_CALLBACKS
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_vout
].
p_vout
,
SendEvents
);
vout_
Destroy
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_vout
].
p_vout
);
vout_
CloseAndRelease
(
p_vout
->
p_sys
->
pp_vout
[
p_vout
->
p_sys
->
i_vout
].
p_vout
);
}
}
}
...
...
src/libvlccore.sym
View file @
d926bc98
...
...
@@ -478,10 +478,10 @@ vlm_MessageNew
__vlm_New
__vout_AllocatePicture
vout_ChromaCmp
vout_Close
vout_ControlWindow
__vout_CopyPicture
__vout_Create
vout_Destroy
vout_CreatePicture
vout_DatePicture
vout_DestroyPicture
...
...
src/video_output/video_output.c
View file @
d926bc98
...
...
@@ -129,7 +129,7 @@ vout_thread_t *__vout_Request( vlc_object_t *p_this, vout_thread_t *p_vout,
* TODO: support for reusing video outputs with proper _thread-safe_
* reference handling. */
if
(
p_vout
)
vout_
Destroy
(
p_vout
);
vout_
CloseAndRelease
(
p_vout
);
return
NULL
;
}
...
...
@@ -441,7 +441,7 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
if
(
p_vout
->
b_error
)
{
msg_Err
(
p_vout
,
"video output creation failed"
);
vout_
Destroy
(
p_vout
);
vout_
CloseAndRelease
(
p_vout
);
return
NULL
;
}
...
...
@@ -449,20 +449,20 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
}
/*****************************************************************************
* vout_
Destroy: destroys
a vout created by vout_Create.
* vout_
Close: Close
a vout created by vout_Create.
*****************************************************************************
* You HAVE to call it on vout created by vout_Create. You should NEVER call
* it on vout not obtained though vout_Create (like with vout_Request or
* vlc_object_find.)
* You HAVE to call it on vout created by vout_Create before vlc_object_release.
* You should NEVER call it on vout not obtained though vout_Create
* (like with vout_Request or vlc_object_find.)
* You can use vout_CloseAndRelease() as a convenient method.
*****************************************************************************/
void
vout_
Destroy
(
vout_thread_t
*
p_vout
)
void
vout_
Close
(
vout_thread_t
*
p_vout
)
{
assert
(
p_vout
);
vlc_object_kill
(
p_vout
);
vlc_thread_join
(
p_vout
);
module_Unneed
(
p_vout
,
p_vout
->
p_module
);
vlc_object_release
(
p_vout
);
}
/* */
...
...
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