Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts: allow to remove dvb service
  • Loading branch information
perexg committed Oct 22, 2014
1 parent c260931 commit e21b220
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/service.c
Expand Up @@ -48,6 +48,7 @@
#include "esfilter.h"

static void service_data_timeout(void *aux);
static void service_class_delete(struct idnode *self);
static void service_class_save(struct idnode *self);

struct service_queue service_all;
Expand Down Expand Up @@ -171,6 +172,7 @@ const idclass_t service_class = {
.ic_caption = "Service",
.ic_event = "service",
.ic_perm_def = ACCESS_ADMIN,
.ic_delete = service_class_delete,
.ic_save = service_class_save,
.ic_get_title = service_class_get_title,
.ic_properties = (const property_t[]){
Expand Down Expand Up @@ -1257,6 +1259,15 @@ service_request_save(service_t *t, int restart)
}


/**
*
*/
static void
service_class_delete(struct idnode *self)
{
service_destroy((service_t *)self, 1);
}

/**
*
*/
Expand Down
2 changes: 1 addition & 1 deletion src/webui/static/app/mpegts.js
Expand Up @@ -260,7 +260,7 @@ tvheadend.services = function(panel, index)
tabIndex: index,
hidemode: true,
add: false,
del: false,
del: true,
help: function() {
new tvheadend.help('Services', 'config_services.html');
},
Expand Down

0 comments on commit e21b220

Please sign in to comment.