Project

General

Profile

Bug #253 » iptv_remove.diff

patch - Steven VS -, 2010-07-27 21:13

View differences:

src/transports.c (working copy)
1 1
/*
2 2
 *  tvheadend, transport and subscription functions
3
 *  Copyright (C) 2007 Andreas ?man
3
 *  Copyright (C) 2007 Andreas man
4 4
 *
5 5
 *  This program is free software: you can redistribute it and/or modify
6 6
 *  it under the terms of the GNU General Public License as published by
......
47 47
#include "atomic.h"
48 48
#include "dvb/dvb.h"
49 49
#include "htsp.h"
50
#include "settings.h"
50 51

  
51 52
#define TRANSPORT_HASH_WIDTH 101
52 53

  
......
437 438
  lock_assert(&global_lock);
438 439

  
439 440
  serviceprobe_delete(t);
440

  
441
  if(t->tht_type==TRANSPORT_IPTV){
442
    if(t->tht_ch != NULL) channel_delete(t->tht_ch);
443
    hts_settings_remove("iptvtransports/%s",t->tht_identifier);
444
  }
441 445
  while((s = LIST_FIRST(&t->tht_subscriptions)) != NULL) {
442 446
    subscription_unlink_transport(s, SM_CODE_SOURCE_DELETED);
443 447
  }
......
454 458
    transport_stop(t);
455 459

  
456 460
  t->tht_status = TRANSPORT_ZOMBIE;
457

  
461
  
458 462
  free(t->tht_identifier);
459 463
  free(t->tht_svcname);
460 464
  free(t->tht_provider);
    (1-1/1)