Page 1 of 1

FileAccess and Timeshifting Live Stream (Question)

Posted: 02 Jun 2004 23:09
by CryHavoc
I have created a timeshift plugin by combining the Access File plugin and the DShow plugin (actually I wrote my own DirectShow buffering filter).

The plugin runs fine rotating through 5 min capture buffer files alllowing me to pause and seek back on a live stream for a vraiable number of minutes.

Now the issue:

When I change the channels via an additional variable added to
typedef struct _input_socket_s
{
input_socket_t _socket;

unsigned int i_nb_reads;
vlc_bool_t b_kfir;

int channel;

} _input_socket_t;

The channel changes fine but when the file is reset VLC produces an infinate number of messages as follows:

main warning: PTS is out of range (6970906), dropping buffer

The reason for this seems obvious. The PTS in the stream is getting reset when the channel changes.

Question:

What would be the proper method for resetting the stream (input) without going through a full Close and Open. The reason I ask is because I would like to avoid the overhead of rebuilding the DirectShow graph when All I'm doing is sending a command to the card and reopening the capture file.

Any help would be appreciated.

Currently using 0.7.3 (maybe a week old)