Commit dbcc7fad authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB/XVideo: cosmetic

parent 2ee87126
...@@ -131,7 +131,7 @@ static bool CheckXVideo (vout_display_t *vd, xcb_connection_t *conn) ...@@ -131,7 +131,7 @@ static bool CheckXVideo (vout_display_t *vd, xcb_connection_t *conn)
return ok; return ok;
} }
static vlc_fourcc_t ParseFormat (vout_display_t *vd, static vlc_fourcc_t ParseFormat (vlc_object_t *obj,
const xcb_xv_image_format_info_t *restrict f) const xcb_xv_image_format_info_t *restrict f)
{ {
if (f->byte_order != ORDER && f->bpp != 8) if (f->byte_order != ORDER && f->bpp != 8)
...@@ -175,9 +175,9 @@ static vlc_fourcc_t ParseFormat (vout_display_t *vd, ...@@ -175,9 +175,9 @@ static vlc_fourcc_t ParseFormat (vout_display_t *vd,
} }
break; break;
} }
msg_Err (vd, "unknown XVideo RGB format %"PRIx32" (%.4s)", msg_Err (obj, "unknown XVideo RGB format %"PRIx32" (%.4s)",
f->id, f->guid); f->id, f->guid);
msg_Dbg (vd, " %"PRIu8" planes, %"PRIu8" bits/pixel, " msg_Dbg (obj, " %"PRIu8" planes, %"PRIu8" bits/pixel, "
"depth %"PRIu8, f->num_planes, f->bpp, f->depth); "depth %"PRIu8, f->num_planes, f->bpp, f->depth);
break; break;
...@@ -223,16 +223,16 @@ static vlc_fourcc_t ParseFormat (vout_display_t *vd, ...@@ -223,16 +223,16 @@ static vlc_fourcc_t ParseFormat (vout_display_t *vd,
break; break;
} }
bad: bad:
msg_Err (vd, "unknown XVideo YUV format %"PRIx32" (%.4s)", f->id, msg_Err (obj, "unknown XVideo YUV format %"PRIx32" (%.4s)", f->id,
f->guid); f->guid);
msg_Dbg (vd, " %"PRIu8" planes, %"PRIu32" bits/pixel, " msg_Dbg (obj, " %"PRIu8" planes, %"PRIu32" bits/pixel, "
"%"PRIu32"/%"PRIu32"/%"PRIu32" bits/sample", f->num_planes, "%"PRIu32"/%"PRIu32"/%"PRIu32" bits/sample", f->num_planes,
f->bpp, f->y_sample_bits, f->u_sample_bits, f->v_sample_bits); f->bpp, f->y_sample_bits, f->u_sample_bits, f->v_sample_bits);
msg_Dbg (vd, " period: %"PRIu32"/%"PRIu32"/%"PRIu32"x" msg_Dbg (obj, " period: %"PRIu32"/%"PRIu32"/%"PRIu32"x"
"%"PRIu32"/%"PRIu32"/%"PRIu32, "%"PRIu32"/%"PRIu32"/%"PRIu32,
f->vhorz_y_period, f->vhorz_u_period, f->vhorz_v_period, f->vhorz_y_period, f->vhorz_u_period, f->vhorz_v_period,
f->vvert_y_period, f->vvert_u_period, f->vvert_v_period); f->vvert_y_period, f->vvert_u_period, f->vvert_v_period);
msg_Warn (vd, " order: %.32s", f->vcomp_order); msg_Warn (obj, " order: %.32s", f->vcomp_order);
break; break;
} }
return 0; return 0;
...@@ -253,7 +253,7 @@ FindFormat (vout_display_t *vd, ...@@ -253,7 +253,7 @@ FindFormat (vout_display_t *vd,
end = f + xcb_xv_list_image_formats_format_length (list); end = f + xcb_xv_list_image_formats_format_length (list);
for (; f < end; f++) for (; f < end; f++)
{ {
if (chroma != ParseFormat (vd, f)) if (chroma != ParseFormat (VLC_OBJECT(vd), f))
continue; continue;
/* VLC pads scanline to 16 pixels internally */ /* VLC pads scanline to 16 pixels internally */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment