[vlc-devel] [PATCH 16/31] vout: remove unused vout_Request
Steve Lhomme
robux4 at ycbcr.xyz
Fri Jul 5 16:19:55 CEST 2019
It's replaced by vout_RequestDevice + vout_RequestDisplay.
---
src/video_output/video_output.c | 11 -----------
src/video_output/vout_internal.h | 18 ------------------
2 files changed, 29 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 8b2fe49bca..5e4915e0b0 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1862,17 +1862,6 @@ vout_thread_t *vout_Hold(vout_thread_t *vout)
return vout;
}
-int vout_Request(const vout_configuration_t *cfg, vlc_decoder_device **dec_dev,
- input_thread_t *input)
-{
- int res = vout_RequestDevice(cfg, dec_dev);
- if (res == 0)
- {
- res = vout_RequestDisplay(cfg, input);
- }
- return res;
-}
-
int vout_RequestDevice(const vout_configuration_t *cfg, vlc_decoder_device **dec_dev)
{
vout_thread_t *vout = cfg->vout;
diff --git a/src/video_output/vout_internal.h b/src/video_output/vout_internal.h
index a8411d73ac..e7ad86139c 100644
--- a/src/video_output/vout_internal.h
+++ b/src/video_output/vout_internal.h
@@ -226,24 +226,6 @@ int vout_RequestDevice(const vout_configuration_t *cfg, vlc_decoder_device **dec
*/
int vout_RequestDisplay(const vout_configuration_t *cfg, input_thread_t *input);
-/**
- * Returns a suitable vout or release the given one.
- *
- * If cfg->fmt is non NULL and valid, a vout will be returned, reusing cfg->vout
- * is possible, otherwise it returns NULL.
- * If cfg->vout is not used, it will be closed and released.
- *
- * You can release the returned value either by vout_Request() or vout_Close().
- *
- * \param cfg the video configuration requested.
- * \param dec_dev pointer to receive the decoder device to use with the vout
- * \param input used to get attachments for spu filters
- * \retval 0 on success
- * \retval -1 on error
- */
-int vout_Request(const vout_configuration_t *cfg, vlc_decoder_device **dec_dev,
- input_thread_t *input);
-
/**
* Disables a vout.
*
--
2.17.1
More information about the vlc-devel
mailing list