Re: dvbsream v0-5 and -n switch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 1 Jan 2009, Mike Martin wrote:

> I am using dvbstream for an application I am developing
> (www.sourceforge.net/epgrec) and when I try using the -n switch
> (according to help should set number of seconds to record) it has no
> effect

Do you have the source for your version (I presume you
mean v0.5) ?

This is the patch I have applied to v0.6, among lots of
others, which I think will fix it for you, assuming the
code is comparable between versions...

--- /mnt/usr/local/src/dvbtools/dvbstream/dvbstream.c-DIST	2005-01-06 11:25:27.000000000 +0100
+++ /mnt/usr/local/src/dvbtools/dvbstream/dvbstream.c	2005-12-05 14:55:50.000000000 +0100
@@ -846,7 +849,7 @@
   if(map_cnt > 0)
     fprintf(stderr, "\n");
   for (i=0;i<map_cnt;i++) {
-    if ((secs==-1) || (secs < pids_map[i].end_time)) { secs=pids_map[i].end_time; }
+    if ((secs==-1) || ((long)secs < pids_map[i].end_time)) { secs=pids_map[i].end_time; }
     if(pids_map[i].filename != NULL)
     	fprintf(stderr,"MAP %d, file %s: From %ld secs, To %ld secs, %d PIDs - ",i,pids_map[i].filename,pids_map[i].start_time,pids_map[i].end_time,pids_map[i].pid_cnt);
     else


There are a lot of other hacks in the version I'm running;
either I'll post them as-is against the 2005 source code,
or I'll try to create diffs where applicable against the
lastest source, or I won't bother -- depends how lazy I
am -- maybe I'll just post a description of hacks I've
added in case there's interest...


thanks
barry bouwsma

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux