Skip to content

Commit d01c905

Browse files
committed
Stop spamming log with actually a non-error
It did error before the previous change because a Service object would always be created notwithstanding an allocation error.
1 parent 7a60279 commit d01c905

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/mltcontroller.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,6 @@ bool Controller::saveXML(const QString &filename,
499499

500500
// Save the consumer of this service so it can be restored.
501501
auto saveConsumer = mlt_service_consumer(s.consumer()->get_service());
502-
if (!saveConsumer) {
503-
LOG_ERROR() << "Unable to get save consumer";
504-
}
505502
c.connect(s);
506503
c.start();
507504
if (ignore)
@@ -553,9 +550,6 @@ QString Controller::XML(Service *service, bool withProfile, bool withMetadata)
553550

554551
// Save the consumer of this service so it can be restored.
555552
auto saveConsumer = mlt_service_consumer(s.consumer()->get_service());
556-
if (!saveConsumer) {
557-
LOG_ERROR() << "Unable to get save consumer";
558-
}
559553
int ignore = s.get_int("ignore_points");
560554
if (ignore)
561555
s.set("ignore_points", 0);

0 commit comments

Comments
 (0)