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.");
28 bool InformRetiredStringFlag(
const char* flagname,
const std::string& value) {
30 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
34 bool InformRetiredDefaultTrueFlag(
const char* flagname,
bool value) {
36 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
40 bool InformRetiredDefaultDoubleFlag(
const char* flagname,
double value) {
42 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
46 DEFINE_validator(profile, &InformRetiredStringFlag);
47 DEFINE_validator(single_segment, &InformRetiredDefaultTrueFlag);
48 DEFINE_validator(webm_subsample_encryption, &InformRetiredDefaultTrueFlag);
49 DEFINE_validator(availability_time_offset, &InformRetiredDefaultDoubleFlag);