mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
pbutils: Add description for TechSmith Screen Capture 2
https://bugzilla.gnome.org/show_bug.cgi?id=707878
This commit is contained in:
parent
2976866348
commit
721931d80a
1 changed files with 15 additions and 1 deletions
|
@ -319,7 +319,8 @@ static const FormatInfo formats[] = {
|
||||||
{"video/x-raw", NULL, FLAG_VIDEO, ""},
|
{"video/x-raw", NULL, FLAG_VIDEO, ""},
|
||||||
{"video/x-svq", NULL, FLAG_VIDEO, ""},
|
{"video/x-svq", NULL, FLAG_VIDEO, ""},
|
||||||
{"video/x-wmv", NULL, FLAG_VIDEO, ""},
|
{"video/x-wmv", NULL, FLAG_VIDEO, ""},
|
||||||
{"video/x-xan", NULL, FLAG_VIDEO, ""}
|
{"video/x-xan", NULL, FLAG_VIDEO, ""},
|
||||||
|
{"video/x-tscc", NULL, FLAG_VIDEO, ""}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* returns static descriptions and dynamic ones (such as video/x-raw),
|
/* returns static descriptions and dynamic ones (such as video/x-raw),
|
||||||
|
@ -683,6 +684,19 @@ format_info_get_desc (const FormatInfo * info, const GstCaps * caps)
|
||||||
|
|
||||||
return g_strdup_printf (_("Raw %d-bit %s audio"), depth,
|
return g_strdup_printf (_("Raw %d-bit %s audio"), depth,
|
||||||
is_float ? "floating-point" : "PCM");
|
is_float ? "floating-point" : "PCM");
|
||||||
|
} else if (strcmp (info->type, "video/x-tscc") == 0) {
|
||||||
|
gint version;
|
||||||
|
gst_structure_get_int (s, "tsccversion", &version);
|
||||||
|
switch (version) {
|
||||||
|
case 1:
|
||||||
|
return g_strdup ("TechSmith Screen Capture 1");
|
||||||
|
case 2:
|
||||||
|
return g_strdup ("TechSmith Screen Capture 2");
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
GST_WARNING ("Unexpected version in %" GST_PTR_FORMAT, caps);
|
||||||
|
return g_strdup ("TechSmith Screen Capture");
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue