summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/EngineStore.cpp4
-rw-r--r--src/engine/EventBuffer.cpp4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/engine/EngineStore.cpp b/src/engine/EngineStore.cpp
index 9fcd3806..0140f201 100644
--- a/src/engine/EngineStore.cpp
+++ b/src/engine/EngineStore.cpp
@@ -77,11 +77,7 @@ EngineStore::find_object(const Path& path)
void
EngineStore::add(GraphObject* obj)
{
- GraphObjectImpl* o = dynamic_cast<GraphObjectImpl*>(obj);
- assert(o);
-
assert(ThreadManager::current_thread_id() == THREAD_PRE_PROCESS);
-
Store::add(obj);
}
diff --git a/src/engine/EventBuffer.cpp b/src/engine/EventBuffer.cpp
index e8584597..e57312ad 100644
--- a/src/engine/EventBuffer.cpp
+++ b/src/engine/EventBuffer.cpp
@@ -203,8 +203,8 @@ EventBuffer::append(uint32_t frames,
bool
EventBuffer::append(const LV2_Event_Buffer* buf)
{
- uint8_t** data;
- bool ret = true;
+ uint8_t** data = NULL;
+ bool ret = true;
LV2_Event_Iterator iter;
for (lv2_event_begin(&iter, _buf); lv2_event_is_valid(&iter); lv2_event_increment(&iter)) {