diff options
author | wm4 <wm4@nowhere> | 2015-03-30 23:56:17 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-03-31 00:09:03 +0200 |
commit | 8f0f73e5917fd30dbd359ad24b037b66e05fa11a (patch) | |
tree | 2afe3bf90dbf6e4887debb05ec050b737c469a1b /video/out/vo_lavc.c | |
parent | 27715b7dd18c4a393b8483b8048cb957172e776b (diff) | |
download | mpv-8f0f73e5917fd30dbd359ad24b037b66e05fa11a.tar.bz2 mpv-8f0f73e5917fd30dbd359ad24b037b66e05fa11a.tar.xz |
video/out: remove unused colorspace reporting
Rarely used and essentially useless. The only VO for which this was
implemented correctly and for which this did anything was vo_xv, but you
shouldn't use vo_xv anyway (plus it support BT.601 only, plus a vendor
specific extension for BT.709, whose presence this function essentially
reported - use xvinfo instead).
Diffstat (limited to 'video/out/vo_lavc.c')
-rw-r--r-- | video/out/vo_lavc.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/video/out/vo_lavc.c b/video/out/vo_lavc.c index 032f58c0f1..40dcb7fd79 100644 --- a/video/out/vo_lavc.c +++ b/video/out/vo_lavc.c @@ -54,8 +54,6 @@ struct priv { AVRational worst_time_base; int worst_time_base_is_stream; - struct mp_image_params real_colorspace; - bool shutdown; }; @@ -167,11 +165,6 @@ static int reconfig(struct vo *vo, struct mp_image_params *params, int flags) if (encode_lavc_open_codec(vo->encode_lavc_ctx, vc->stream) < 0) goto error; - vc->real_colorspace.colorspace = - encode_lavc_get_csp(vo->encode_lavc_ctx, vc->stream); - vc->real_colorspace.colorlevels = - encode_lavc_get_csp_levels(vo->encode_lavc_ctx, vc->stream); - vc->buffer_size = 6 * width * height + 200; if (vc->buffer_size < FF_MIN_BUFFER_SIZE) vc->buffer_size = FF_MIN_BUFFER_SIZE; @@ -516,17 +509,7 @@ static void flip_page(struct vo *vo) static int control(struct vo *vo, uint32_t request, void *data) { - struct priv *vc = vo->priv; - int r = VO_NOTIMPL; - pthread_mutex_lock(&vo->encode_lavc_ctx->lock); - switch (request) { - case VOCTRL_GET_COLORSPACE: - *(struct mp_image_params *)data = vc->real_colorspace; - r = 1; - break; - } - pthread_mutex_unlock(&vo->encode_lavc_ctx->lock); - return r; + return VO_NOTIMPL; } const struct vo_driver video_out_lavc = { |