-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cmd flags to support static mpd with live profile
- Deprecated command line flags --profile and --single_segment. 'segment_template' in stream descriptors implies live profile and non-single segment. - Added flag --generate_static_mpd_for_live_profile to generate static mpd for live profile; if not set, dynamic mpd will be generated. Close #142 Change-Id: I78879297ed118f0f246c4753a16ad125bd6b5e4f
- Loading branch information
Showing
24 changed files
with
137 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright 2017 Google Inc. All rights reserved. | ||
// | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file or at | ||
// https://developers.google.com/open-source/licenses/bsd | ||
// | ||
// Defines retired / deprecated flags. These flags will be removed in later | ||
// versions. | ||
|
||
#include "packager/app/retired_flags.h" | ||
|
||
#include <stdio.h> | ||
|
||
DEFINE_string(profile, "", "This flag is deprecated. Do not use."); | ||
DEFINE_bool(single_segment, true, "This flag is deprecated. Do not use."); | ||
|
||
// The current gflags library does not provide a way to check whether a flag is | ||
// set in command line. If a flag has a different value to its default value, | ||
// the flag must have been set. It is possible that the flag is set to the same | ||
// value as its default value though. | ||
bool InformRetiredStringFlag(const char* flagname, const std::string& value) { | ||
if (!value.empty()) | ||
fprintf(stderr, "WARNING: %s is deprecated and ignored.\n", flagname); | ||
return true; | ||
} | ||
|
||
bool InformRetiredDefaultTrueFlag(const char* flagname, bool value) { | ||
if (!value) | ||
fprintf(stderr, "WARNING: %s is deprecated and ignored.\n", flagname); | ||
return true; | ||
} | ||
|
||
DEFINE_validator(profile, &InformRetiredStringFlag); | ||
DEFINE_validator(single_segment, &InformRetiredDefaultTrueFlag); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright 2017 Google Inc. All rights reserved. | ||
// | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file or at | ||
// https://developers.google.com/open-source/licenses/bsd | ||
|
||
#include <gflags/gflags.h> | ||
|
||
DECLARE_string(profile); | ||
DECLARE_bool(single_segment); |
Oops, something went wrong.