elementary_stream_t *st;
streaming_component_type_t type;
const char *v;
+ int shared_pcr = 0;
idnode_load(&t->s_id, c);
if(htsmsg_get_u32(c, "pid", &pid))
continue;
+ if(pid > 0 && t->s_pcr_pid > 0 && pid == t->s_pcr_pid)
+ shared_pcr = 1;
+
st = service_stream_create(t, pid, type);
if((v = htsmsg_get_str(c, "language")) != NULL)
}
}
}
+ if (!shared_pcr)
+ service_stream_create(t, t->s_pcr_pid, SCT_PCR);
sort_elementary_streams(t);
pthread_mutex_unlock(&t->s_stream_mutex);
}