[vlc-commits] vout: remove unused ThreadReinit()
Rémi Denis-Courmont
git at videolan.org
Sun Jan 27 22:10:17 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 27 22:05:37 2019 +0200| [f6430b8375ebbe2c676597b8b461d31a996ad60f] | committer: Rémi Denis-Courmont
vout: remove unused ThreadReinit()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6430b8375ebbe2c676597b8b461d31a996ad60f
---
src/video_output/control.h | 2 --
src/video_output/video_output.c | 28 +---------------------------
2 files changed, 1 insertion(+), 29 deletions(-)
diff --git a/src/video_output/control.h b/src/video_output/control.h
index 80b1ec08ed..a9314cb510 100644
--- a/src/video_output/control.h
+++ b/src/video_output/control.h
@@ -28,7 +28,6 @@
/* */
enum {
VOUT_CONTROL_CLEAN,
- VOUT_CONTROL_REINIT, /* cfg */
#if 0
/* */
@@ -76,7 +75,6 @@ typedef struct {
unsigned height;
} window;
vlc_mouse_t mouse;
- const vout_configuration_t *cfg;
subpicture_t *subpicture;
vlc_viewpoint_t viewpoint;
};
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 0c063dc679..682f99b50e 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1480,28 +1480,6 @@ static void ThreadStop(vout_thread_t *vout)
vout->p->mouse_event(NULL, vout->p->opaque);
}
-static int ThreadReinit(vout_thread_t *vout,
- const vout_configuration_t *cfg)
-{
- vout->p->mouse_event = cfg->mouse_event;
- vout->p->opaque = cfg->opaque;
-
- vout->p->pause.is_on = false;
- vout->p->pause.date = VLC_TICK_INVALID;
-
- ThreadStop(vout);
-
- vout_ReinitInterlacingSupport(vout);
-
- video_format_Clean(&vout->p->original);
- VoutFixFormat(&vout->p->original, cfg->fmt);
- vout->p->dpb_size = cfg->dpb_size;
- if (vout_Start(vout))
- return VLC_EGENERIC;
-
- return VLC_SUCCESS;
-}
-
void vout_Cancel(vout_thread_t *vout, bool canceled)
{
vout_thread_sys_t *sys = vout->p;
@@ -1518,10 +1496,6 @@ static int ThreadControl(vout_thread_t *vout, vout_control_cmd_t cmd)
case VOUT_CONTROL_CLEAN:
ThreadStop(vout);
return 1;
- case VOUT_CONTROL_REINIT:
- if (ThreadReinit(vout, cmd.cfg))
- return 1;
- break;
case VOUT_CONTROL_SUBPICTURE:
ThreadDisplaySubpicture(vout, cmd.subpicture);
cmd.subpicture = NULL;
@@ -1838,7 +1812,7 @@ vout_thread_t *vout_Request(vlc_object_t *object,
vout_ReinitInterlacingSupport(vout);
video_format_Clean(&sys->original);
- VoutFixFormat(&sys->original, cfg->fmt);
+ sys->original = original;
sys->dpb_size = cfg->dpb_size;
vlc_mutex_lock(&vout->p->window_lock);
More information about the vlc-commits
mailing list