set_dirty();
for (niter = nlist.begin(); niter != nlist.end(); ++niter) {
- if ((*niter)->property ("default-type")->value() == "unknown" ) {
- std::cout << "ignoring route with type unknown. (video-track)" << std::endl;
- // Note: this may mess up remote_control IDs or more..
- continue;
+ XMLProperty* prop = (*niter)->property ("default-type");
+
+ if (prop && prop->value() == "unknown" ) {
+ std::cout << "ignoring route with type unknown. (video-track)" << std::endl;
+ // Note: this may mess up remote_control IDs or more..
+ continue;
}
boost::shared_ptr<Route> route (XMLRouteFactory (**niter));