Lines Matching defs:pol
948 const lws_ss_policy_t *pol;
960 pol = ssi->policy;
961 if (!pol) {
978 pol = NULL;
980 pol = lws_ss_policy_lookup(context, ssi->streamtype);
984 pol = lws_ss_policy_lookup(context, ssi->streamtype);
986 if (!pol) {
1003 if (!(pol->flags & LWSSSPOLF_LOCAL_SINK)) {
1016 if (!(pol->flags & LWSSSPOLF_LOCAL_SINK)) {
1038 if (pol->plugins[0])
1039 size += pol->plugins[0]->alloc;
1040 if (pol->plugins[1])
1041 size += pol->plugins[1]->alloc;
1043 size += pol->metadata_count * sizeof(lws_ss_metadata_t);
1072 h->policy = pol;
1094 if (pol->plugins[0]) {
1096 p += pol->plugins[0]->alloc;
1098 if (pol->plugins[1]) {
1100 p += pol->plugins[1]->alloc;
1104 if (pol->metadata_count) {
1106 p += pol->metadata_count * sizeof(lws_ss_metadata_t);
1109 pol->streamtype, pol->metadata_count);
1112 smd = pol->metadata;
1113 for (n = 0; n < pol->metadata_count; n++) {
1115 if (n + 1 == pol->metadata_count)
1137 *ppayload_fmt = pol->payload_fmt;
1150 pol == &pol_smd) {
1310 pol == &pol_smd) {