Esempio n. 1
0
  static void PrintTag (TagList list, string tag) {
    uint count = list.GetTagSize (tag);

    //Console.WriteLine ("Tags found = " + count);

    for (uint i = 0; i < count; i++) {
      string str;

      try {
        str = list[tag, i].ToString ();
      } catch (Exception ex) {
        str = ex.Message;
      }

      if (i == 0)
        Console.WriteLine ("{0}: {1}", Tag.GetNick (tag).PadRight (25), str);
      else
        Console.WriteLine ("{0}{1}", string.Empty.PadRight (27), str);
    }
  }
Esempio n. 2
0
        private void HandleTag (Pad pad, TagList tag_list)
        {
            foreach (string tag in tag_list.Tags) {
                if (String.IsNullOrEmpty (tag)) {
                    continue;
                }

                if (tag_list.GetTagSize (tag) < 1) {
                    continue;
                }

                List tags = tag_list.GetTag (tag);

                foreach (object o in tags) {
                    OnTagFound (new StreamTag () { Name = tag, Value = o });
                }
            }
        }
Esempio n. 3
0
 private void HandleTag(TagList tag_list, string tagname)
 {
     for (uint i = 0; i < tag_list.GetTagSize (tagname); i++) {
         GLib.Value val = tag_list.GetValueIndex (tagname, i);
         OnTagFound (new StreamTag () { Name = tagname, Value = val.Val });
         val.Dispose ();
     }
 }
Esempio n. 4
0
    static void PrintTag(TagList list, string tag)
    {
        uint count = list.GetTagSize (tag);

        //Console.WriteLine ("Tags found = " + count);

        for (uint i = 0; i < count; i++)
        {
            string str;

            if (Tag.GetGType (tag) == GLib.GType.String)
            {
                if (!list.GetStringIndex (tag, i, out str))
                    Console.Error.WriteLine ("g_assert_not_reached()???");
            }
            else
            {
                try
                {
                    str = list.GetValueIndex (tag, i).Val.ToString ();
                }
                catch (Exception ex)
                {
                    str = ex.Message;
                }
            }

            if (i == 0)
                Console.WriteLine ("{0}: {1}", Tag.GetNick (tag).PadRight (25), str);
            else
                Console.WriteLine ("{0}{1}", string.Empty.PadRight (27), str);
        }
    }