mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 10:55:34 +00:00
info: filter buffers from tags and add some planning comments
This commit is contained in:
parent
13cf579f94
commit
328c9e7aab
1 changed files with 9 additions and 4 deletions
|
@ -671,9 +671,6 @@ public class MediaInfo.Info : VPaned
|
|||
string str, fn, vstr;
|
||||
Gst.Value v;
|
||||
|
||||
// TODO: add special handling for certain tags
|
||||
// image, uris, ...
|
||||
|
||||
str = "";
|
||||
for (i = 0; i < s.n_fields(); i++) {
|
||||
fn = s.nth_field_name (i);
|
||||
|
@ -683,9 +680,17 @@ public class MediaInfo.Info : VPaned
|
|||
if (fn.has_prefix("private-"))
|
||||
continue;
|
||||
|
||||
// skip buffers (usualy images)
|
||||
// TODO: decode images,
|
||||
// - need to figure a way to return them
|
||||
// - need to find a place where we show them
|
||||
v = s.get_value (fn);
|
||||
if (v.holds(typeof(Gst.Buffer)))
|
||||
continue;
|
||||
|
||||
if (str.length > 0)
|
||||
str += "\n";
|
||||
v = s.get_value (fn);
|
||||
|
||||
vstr = v.serialize ().compress ();
|
||||
if (vstr.has_prefix("http://") || vstr.has_prefix("https://")) {
|
||||
vstr = "<a href=\"" + vstr + "\">" + vstr + "</a>";
|
||||
|
|
Loading…
Reference in a new issue