summaryrefslogtreecommitdiffstats
path: root/player/loadfile.c
diff options
context:
space:
mode:
authorMartin Herkt <lachs0r@srsfckn.biz>2014-04-24 18:44:46 +0200
committerMartin Herkt <lachs0r@srsfckn.biz>2014-05-04 02:46:11 +0200
commit48bd03dd912321b8bfa12b8b201d2f0b3aa43ae0 (patch)
tree56178a31524ea7276dc1a26a83a678917a783249 /player/loadfile.c
parent81c076b2f8c8b0da0ebcf1c8aadf4c7dfb5e5d22 (diff)
downloadmpv-48bd03dd912321b8bfa12b8b201d2f0b3aa43ae0.tar.bz2
mpv-48bd03dd912321b8bfa12b8b201d2f0b3aa43ae0.tar.xz
options: remove deprecated --identify
Also remove MSGL_SMODE and friends. Note: The indent in options.rst was added to work around a bug in ReportLab that causes the PDF manual build to fail.
Diffstat (limited to 'player/loadfile.c')
-rw-r--r--player/loadfile.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/player/loadfile.c b/player/loadfile.c
index f750d8917c..6319d092ce 100644
--- a/player/loadfile.c
+++ b/player/loadfile.c
@@ -221,36 +221,10 @@ static void print_stream(struct MPContext *mpctx, struct track *t)
// legacy compatibility
if (!iid)
return;
- int id = t->user_tid;
- MP_SMODE(mpctx, "ID_%s_ID=%d\n", iid, id);
- if (t->title)
- MP_SMODE(mpctx, "ID_%s_%d_NAME=%s\n", iid, id, t->title);
- if (t->lang)
- MP_SMODE(mpctx, "ID_%s_%d_LANG=%s\n", iid, id, t->lang);
}
static void print_file_properties(struct MPContext *mpctx)
{
- MP_SMODE(mpctx, "ID_FILENAME=%s\n", mpctx->filename);
- MP_SMODE(mpctx,
- "ID_LENGTH=%.2f\n", get_time_length(mpctx));
- int chapter_count = get_chapter_count(mpctx);
- if (chapter_count >= 0) {
- MP_SMODE(mpctx, "ID_CHAPTERS=%d\n", chapter_count);
- for (int i = 0; i < chapter_count; i++) {
- MP_SMODE(mpctx, "ID_CHAPTER_ID=%d\n", i);
- // print in milliseconds
- double time = chapter_start_time(mpctx, i) * 1000.0;
- MP_SMODE(mpctx, "ID_CHAPTER_%d_START=%"PRId64"\n",
- i, (int64_t)(time < 0 ? -1 : time));
- char *name = chapter_name(mpctx, i);
- if (name) {
- MP_SMODE(mpctx, "ID_CHAPTER_%d_NAME=%s\n", i,
- name);
- talloc_free(name);
- }
- }
- }
struct demuxer *demuxer = mpctx->master_demuxer;
if (demuxer->num_editions > 1) {
for (int n = 0; n < demuxer->num_editions; n++) {