10 #include "packager/app/retired_flags.h" 14 DEFINE_string(profile,
"",
"This flag is deprecated. Do not use.");
15 DEFINE_bool(single_segment,
true,
"This flag is deprecated. Do not use.");
16 DEFINE_bool(webm_subsample_encryption,
18 "This flag is deprecated. Use vp9_subsample_encryption instead.");
19 DEFINE_double(availability_time_offset,
21 "This flag is deprecated. Use suggested_presentation_delay " 22 "instead which can achieve similar effect.");
23 DEFINE_string(playready_key_id,
25 "This flag is deprecated. Use --enable_raw_key_encryption with " 26 "--generate_playready_pssh to generate PlayReady PSSH.");
27 DEFINE_string(playready_key,
29 "This flag is deprecated. Use --enable_raw_key_encryption with " 30 "--generate_playready_pssh to generate PlayReady PSSH.");
36 bool InformRetiredStringFlag(
const char* flagname,
const std::string& value) {
38 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
42 bool InformRetiredDefaultTrueFlag(
const char* flagname,
bool value) {
44 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
48 bool InformRetiredDefaultDoubleFlag(
const char* flagname,
double value) {
50 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
54 DEFINE_validator(profile, &InformRetiredStringFlag);
55 DEFINE_validator(single_segment, &InformRetiredDefaultTrueFlag);
56 DEFINE_validator(webm_subsample_encryption, &InformRetiredDefaultTrueFlag);
57 DEFINE_validator(availability_time_offset, &InformRetiredDefaultDoubleFlag);
58 DEFINE_validator(playready_key_id, &InformRetiredStringFlag);
59 DEFINE_validator(playready_key, &InformRetiredStringFlag);