summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatej Knopp <matej.knopp@gmail.com>2013-09-10 21:44:33 +0200
committerSebastian Dröge <slomo@circular-chaos.org>2013-09-11 11:04:30 +0200
commit721931d80a7d30c602314444f9795c2805ec604c (patch)
tree3b679386aa6b23d5f5a75ae34278a87a6224f52c
parent297686634878e7a1a4a22188bf7f3824b37ac9fb (diff)
pbutils: Add description for TechSmith Screen Capture 2
https://bugzilla.gnome.org/show_bug.cgi?id=707878
-rw-r--r--gst-libs/gst/pbutils/descriptions.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/gst-libs/gst/pbutils/descriptions.c b/gst-libs/gst/pbutils/descriptions.c
index 26c114bad..43802297c 100644
--- a/gst-libs/gst/pbutils/descriptions.c
+++ b/gst-libs/gst/pbutils/descriptions.c
@@ -319,7 +319,8 @@ static const FormatInfo formats[] = {
{"video/x-raw", NULL, FLAG_VIDEO, ""},
{"video/x-svq", 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),
@@ -683,6 +684,19 @@ format_info_get_desc (const FormatInfo * info, const GstCaps * caps)
return g_strdup_printf (_("Raw %d-bit %s audio"), depth,
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;
}