Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Autogenerating marks.vdr
New version online
starts at boot time and works in background.
Klaus, I did some changes to vdr
write a file called "channel.vdr" in each recorded dir
to get the channel out,
Would be fine if you add it to your version of vdr :-)
Changes in vdr-Source:
in menu.c
in cRecordControl::cRecordControl(cDvbApi *DvbApi, cTimer *Timer)
after cRecording Recording(timer);
insert :
asprintf(&filename,"%s",Recording.FileName());
asprintf(&channelname,"%s",Channels.GetChannelNameByNumber(timer->channel));
in cRecordControl::Stop(bool KeepInstant)
befor timer = NULL;
insert :
// save channel.vdr
{
#define CHANNELSUFFIX "/channel.vdr"
char *ChannelFileName = NULL;
FILE *f=NULL;
asprintf(&ChannelFileName, "%s%s", filename,CHANNELSUFFIX);
printf("file: %s\n",ChannelFileName);
printf("Channel: %s\n",channelname);
f = fopen(ChannelFileName, "w");
if( f ){
if ( fputs(channelname,f) < 0 )
LOG_ERROR_STR(ChannelFileName);
fclose(f);
}
else
LOG_ERROR_STR(ChannelFileName);
delete ChannelFileName;
}
in cRecordControl::~cRecordControl()
add :
delete filename;
delete channelname;
and in menu.h
add in class cRecordControl {
private:
char *filename;
char *channelname;
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index