From patchwork Fri Apr 3 10:42:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: lucian orasanu X-Patchwork-Id: 12711 Received: from web55605.mail.re4.yahoo.com ([206.190.58.229]) by mail.linuxtv.org with smtp (Exim 4.63) (envelope-from ) id 1Lpgrk-0002ku-48 for vdr@linuxtv.org; Fri, 03 Apr 2009 12:43:18 +0200 Received: (qmail 94069 invoked by uid 60001); 3 Apr 2009 10:42:11 -0000 Message-ID: <357865.93502.qm@web55605.mail.re4.yahoo.com> X-YMail-OSG: 1_PyPEoVM1nylWadTJ8c3xc7B4pORXO7tMwN2B.jvG5O4vMrOJNO__.acyy1TaryE4JODsKW6K_t8tcfkBNRDI5GIh9v28AhxPJKIx_vb0pQmM.F4StF15fc6hFTFNLwBw2lK9zQXBB_HXWXfHi.lFIlFHicN52mwJB1iGxYYpn3oPmeD4POD4ptLfirh7dPHYfGqdrciiMLy9wti6ImBJXImEUVMpsEtJCjGjD5gtebZCZCpmj_2qtpBRAleDdivy_po1zkNHPLbsKKT1DQ_IgaqJVO5f.ggGZMW72OZvceGpUTPx0- Received: from [195.68.31.231] by web55605.mail.re4.yahoo.com via HTTP; Fri, 03 Apr 2009 03:42:11 PDT X-Mailer: YahooMailWebService/0.7.289.1 Date: Fri, 3 Apr 2009 03:42:11 -0700 (PDT) From: lucian orasanu To: vdr@linuxtv.org MIME-Version: 1.0 X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=AWL=0.050, BAYES_00=-2.599 autolearn=ham Subject: [vdr] Help with dvd plugin! + dvd patch X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2009 10:43:18 -0000 Status: O X-Status: X-Keywords: X-UID: 19980 OK!! thankyou all, I got it working and I made a patch too. patch is for plugin dvd -> dvd-cvs-20071113 orking on vdr-1.7.4 diff -Naur ./dvd-ori/control-dvd.c ./dvd/control-dvd.c --- ./dvd-ori/control-dvd.c 2007-11-13 15:33:30.000000000 +0200 +++ ./dvd/control-dvd.c 2009-04-03 13:08:29.000000000 +0300 @@ -412,8 +412,8 @@ { #define STAY_SECONDS_OFF_END 10 int Seconds = (timeSearchTime >> 24) * 36000 + ((timeSearchTime & 0x00FF0000) >> 16) * 3600 + ((timeSearchTime & 0x0000FF00) >> 8) * 600 + (timeSearchTime & 0x000000FF) * 60; - int Current = (lastCurrent / FRAMESPERSEC); - int Total = (lastTotal / FRAMESPERSEC); + int Current = (lastCurrent / DEFAULTFRAMESPERSECOND); + int Total = (lastTotal / DEFAULTFRAMESPERSECOND); switch (Key) { case k0 ... k9: if (timeSearchPos < 4) { diff -Naur ./dvd-ori/player-dvd.c ./dvd/player-dvd.c --- ./dvd-ori/player-dvd.c 2007-11-13 15:33:30.000000000 +0200 +++ ./dvd/player-dvd.c 2009-04-03 13:07:56.000000000 +0300 @@ -21,6 +21,7 @@ #include #include #include +#include #ifdef HAVE_CONFIG_H #include "config.h" @@ -239,7 +240,7 @@ #define VIDEOBUFSIZE MEGABYTE(1) // The number of frames to back up when resuming an interrupted replay session: -#define RESUMEBACKUP (10 * FRAMESPERSEC) +#define RESUMEBACKUP (10 * DEFAULTFRAMESPERSECOND) #define MAX_VIDEO_SLOWMOTION 63 // max. arg to pass to VIDEO_SLOWMOTION // TODO is this value correct? #define NORMAL_SPEED 10 // the index of the '1' entry in the following array @@ -2027,8 +2028,8 @@ LOCK_THREAD; // save UpdateBlockInfo() BlocksToPGCTicks(pgcCurrentBlockNum, currentTicks, totalTicks); - CurrentFrame = (int)((currentTicks / 90000L) * FRAMESPERSEC); - TotalFrame = (int)((totalTicks / 90000L) * FRAMESPERSEC); + CurrentFrame = (int)((currentTicks / 90000L) * DEFAULTFRAMESPERSECOND); + TotalFrame = (int)((totalTicks / 90000L) * DEFAULTFRAMESPERSECOND); //workaround for lcdproc-crashing if (CurrentFrame == TotalFrame) { @@ -2074,7 +2075,7 @@ { if (!DVDActiveAndRunning()) return -1; - SkipSeconds(Frames*FRAMESPERSEC); + SkipSeconds(Frames*DEFAULTFRAMESPERSECOND); return Frames; }