Project

General

Profile

Bug #3899 » tsdemux.patch

Richard Pavlik, 2016-07-26 16:32

View differences:

src/input/mpegts/tsdemux.c 2016-07-26 10:01:33.607231569 -0400
80 80
        if (!error)
81 81
          errors++;
82 82
        error |= 2;
83

  
84
        // R. Pavlik
85
        // Skip packet and return so it does not corupt time offset
86
        // for timeshift        
87
        st->es_cc = (cc + 1) & 0xf;
88
        ts_skip(t,tsb,len);
89
        return;
90

  
83 91
      }
84 92
      st->es_cc = (cc + 1) & 0xf;
85 93
    }
......
244 252
    }
245 253

  
246 254
  } else {
247
    ts_recv_packet0(t, st, tsb, len);
255
    //ts_recv_packet0(t, st, tsb, len);
256

  
257
    // R. Pavlik
258
    // If we had an errot, skip packet and return so it does not corrupt
259
    // time offset for timeshift        
260
    if(error){
261
      ts_skip(t,tsb,len);
262
    } else {
263
      ts_recv_packet0(t, st, tsb, len);
264
    }
248 265
  }
249 266
  pthread_mutex_unlock(&t->s_stream_mutex);
250 267
  return 1;
(1-1/12)