When using the -n option (to specify how many seconds
to stream), the option appears to be ignored.
FIX: the "secs" variable is declared as an unsigned
long, but it is set a value of -1 (which I believe will
make it a very large positive value). The -n option
works after declaring the sec as a long.
Logged In: NO
The "secs" problem doesn't fix it. The "-n" option
would needs a asyn-call sometimes to stop "streaming"
after some seconds. The autor tried it todo with alarm()
but since he needs the alarm to count the "now" variable,
there is no alarm() left for stopping the streaming.
What i did was
1. changeing "unsigned int secs" to "long secs"
2. Adding the line as seen here:
while ( !Interrupted) {
/* Poll the open file descriptors */
=> if (secs >0 && now >=secs) Interrupted=100;
if you specify secs and now (which is called all 5 secs)
is over secs, it sets the main while-loop to false.
I have to remark that this source is a old mess and
trying to simulate threads with alarm is...a hack!
But nevertheless, its work better than all mplayer dvd://
versions i ever tried!
Logged In: YES
user_id=328469
I have submitted a patch for dvbstream.c:
http://sourceforge.net/tracker/index.php?func=detail&aid=1533839&group_id=50669&atid=460567