int ct = 0;
Mlt::Filter *filter = clipService.filter(ct);
while (filter) {
- if (filter->get("mlt_service") == "luma") {
+ if (strcmp(filter->get("mlt_service"), "luma") == 0) {
break;
}
ct++;
filter = clipService.filter(ct);
}
- if (filter && filter->get("mlt_service") == "luma") {
+ if (filter && strcmp(filter->get("mlt_service"), "luma") == 0) {
filter->set("period", getProperty("ttl").toInt() - 1);
filter->set("luma.out", getProperty("luma_duration").toInt());
QString resource = getProperty("luma_file");
int ct = 0;
Mlt::Filter *filter = clipService.filter(0);
while (filter) {
- if (filter->get("mlt_service") == "luma") {
+ if (strcmp(filter->get("mlt_service"), "luma") == 0) {
clipService.detach(*filter);
} else ct++;
filter = clipService.filter(ct);
int ct = 0;
Mlt::Filter *filter = clipService.filter(ct);
while (filter) {
- if (filter->is_valid() && filter->get("kdenlive_id") != "") {
+ if (filter->is_valid() && strcmp(filter->get("kdenlive_id"), "")) {
// looks like there is no easy way to duplicate a filter,
// so we will create a new one and duplicate its properties
Mlt::Filter *dup = new Mlt::Filter(*m_mltProfile, filter->get("mlt_service"));
int ct = 0;
Mlt::Filter *filter = clipService.filter(ct);
while (filter) {
- if ((index == "-1" && filter->get("kdenlive_id") != "") || filter->get("kdenlive_ix") == index) {// && filter->get("kdenlive_id") == id) {
+ if ((index == "-1" && strcmp(filter->get("kdenlive_id"), "")) || filter->get("kdenlive_ix") == index) {// && filter->get("kdenlive_id") == id) {
if (clipService.detach(*filter) == 0) success = true;
kDebug() << " / / / DLEETED EFFECT: " << ct;
} else if (updateIndex) {