Mailing List archive

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

[vdr] Re: Playing DVD ?



* Sebastian Kemper <Sebastian.Kemper@web.de> [030826 23:14]:

//#define VIDEO_STILLPICTURE_WORKS_WITH_VDR_FRAMES
#ifdef VIDEO_STILLPICTURE_WORKS_WITH_VDR_FRAMES
video_still_picture sp = { (char *)Data, Length };
CHECK(ioctl(fd_video, VIDEO_STILLPICTURE, &sp));
#else
#define MIN_IFRAME 400000
int set=CurrentRuleset();
UseRuleset(1);
fd_out = fd_video;
for (int i = MIN_IFRAME / Length + 1; i > 0; i--) {
for (int u=0 ; u<Length ;) {
int w=Process(Data+u, Length-u);
if(w<0) { i=MIN_IFRAME; break; } // error
if(w==0) usleep(1);
u+=w;
}
usleep(1); // allows the buffer to be displayed in case the progress display is active
}
UseRuleset(set);
#endif

I removed the //# and all # but then VDR didn't compile. Then I removed only the // in the first line and it did compile. Allthough I don't know if I enabled the VIDEO_STILLPICTURE_WORKS_WITH_VDR_FRAMES feature.

Did I?
Yes, you did.
In C++ comments begin by // or are enclosed between /* and */.
Dashes, #, mark no comments, as they usually do in shell scripts and
configuration files, but are preprocessor items, i.e., they're not C
code, but give instructions for the compiler to follow before the
compilation step (feel free to correct me any of you with more C/C++
experience) :)

Say, did you like the result? Here it's just perfect :)


--
Javier Marcet <javier@marcet.info>


--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index