@ -1232,6 +1232,18 @@ wet_output_set_transform(struct weston_output *output,
weston_output_set_transform ( output , transform ) ;
weston_output_set_transform ( output , transform ) ;
}
}
static void
allow_content_protection ( struct weston_output * output ,
struct weston_config_section * section )
{
int allow_hdcp = 1 ;
if ( section )
weston_config_section_get_bool ( section , " allow_hdcp " , & allow_hdcp , 1 ) ;
weston_output_allow_protection ( output , allow_hdcp ) ;
}
static int
static int
wet_configure_windowed_output_from_config ( struct weston_output * output ,
wet_configure_windowed_output_from_config ( struct weston_output * output ,
struct wet_output_config * defaults )
struct wet_output_config * defaults )
@ -1269,6 +1281,8 @@ wet_configure_windowed_output_from_config(struct weston_output *output,
free ( mode ) ;
free ( mode ) ;
}
}
allow_content_protection ( output , section ) ;
if ( parsed_options - > width )
if ( parsed_options - > width )
width = parsed_options - > width ;
width = parsed_options - > width ;
@ -1720,6 +1734,8 @@ drm_backend_output_configure(struct weston_output *output,
api - > set_seat ( output , seat ) ;
api - > set_seat ( output , seat ) ;
free ( seat ) ;
free ( seat ) ;
allow_content_protection ( output , section ) ;
return 0 ;
return 0 ;
}
}