plugins: small fixes

This commit is contained in:
Wim Taymans 2016-12-20 19:13:04 +01:00
parent 618f5ec2b2
commit 2f18af1fb2
2 changed files with 13 additions and 15 deletions

View file

@ -224,8 +224,7 @@ videotestsrc_on_output (SpaSource *source)
SpaPortOutput *output;
if (spa_list_is_empty (&this->empty)) {
if (!this->props[1].live)
update_loop_enabled (this, false);
update_loop_enabled (this, false);
return;
}
b = spa_list_first (&this->empty, VTSBuffer, link);
@ -644,7 +643,7 @@ spa_videotestsrc_node_port_use_buffers (SpaNode *node,
clear_buffers (this);
for (i = 0; i < n_buffers; i++) {
VTSBuffer *b = &this->buffers[i];
VTSBuffer *b;
SpaData *d = buffers[i]->datas;
b = &this->buffers[i];
@ -935,6 +934,10 @@ videotestsrc_init (const SpaHandleFactory *factory,
spa_log_error (this->log, "an id-map is needed");
return SPA_RESULT_ERROR;
}
if (this->data_loop == NULL) {
spa_log_error (this->log, "a data_loop is needed");
return SPA_RESULT_ERROR;
}
this->uri.node = spa_id_map_get_id (this->map, SPA_NODE_URI);
this->uri.clock = spa_id_map_get_id (this->map, SPA_CLOCK_URI);