incompatibiliy between radio plugin and all mp3 plugins
Commit Message
On Montag, 22. Dezember 2008, Klaus Schmidinger wrote:
> On 22.12.2008 22:48, Stefan Huelswitt wrote:
> >
> > Wolfgang Rohdewald schrieb:
> >
> > Hello,
> >
> >> in cPluginRadio::Replaying(), radio.c expects the replayed recording
> >> to be
> >> a VDR record. But mp3plugins like mp3, music, muggle use this
> >> mechanism for
> >> simple audio files.
> >
> > Klaus, could you clarify if the filename passed to
> > cStatus:MsgReplaying() is supposed to be a VDR recording only or if it
> > may be the filename of any kind of media file involved?
>
> It's not limited to VDR recordings:
The radio plugin author Uwe already sent me a private mail with a fix
for his plugin. Attached.
@@ -710,6 +710,9 @@
bool isRadio = false;
if (On && FileName != NULL) {
+ char *vdrfile;
+ asprintf(&vdrfile, "%s/001.vdr", FileName);
+ if (file_exists(vdrfile)) { // check only VDR-Recordings
cFileName fn(FileName, false, true);
cUnbufferedFile *f = fn.Open();
if (f) {
@@ -719,6 +722,8 @@
isRadio = (b[0] == 0x00) && (b[1] == 0x00) && (b[2] == 0x01) && (0xc0 <= b[3] && b[3] <= 0xdf);
}
}
+ free(vdrfile);
+ }
if (isRadio) {
if (!file_exists(ReplayFile))