Esempio n. 1
0
        public static MediaDictionary2 Copy(MediaDictionary2 source)
        {
            AVDictionary *destination = null;

            av_dict_copy(&destination, source, 0).ThrowIfError();
            return(new MediaDictionary2(destination));
        }
Esempio n. 2
0
        public static MediaDictionary2 FromDictionary(IDictionary <string, string> dict)
        {
            MediaDictionary2 md = Empty;

            foreach (var entry in dict)
            {
                md[entry.Key] = entry.Value;
            }
            return(md);
        }
Esempio n. 3
0
 private static IntPtr av_dict_get_safe(MediaDictionary2 dict, IntPtr prev)
 {
     return((IntPtr)av_dict_get(dict, "", (AVDictionaryEntry *)prev, (int)DictFlags.IgnoreSuffix));
 }