*.o
.dependencies
*~
+libvdr-vompserver.so
@echo Distribution package created as $(PACKAGE).tgz
clean:
- rm -f $(OBJS) $(OBJS2) $(DEPFILE) libvdr*.so.* *.tgz core* *~ .standalone vompserver-standalone
+ rm -f $(OBJS) $(OBJS2) $(DEPFILE) libvdr*.so* *.tgz core* *~ .standalone vompserver-standalone
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "mediafile.h"
-#include "media.h"
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <iostream>
-#include "log.h"
-
+#include <stddef.h>
+#include "mediafile.h"
+#include "media.h"
+#include "log.h"
MediaFile::MediaFile(ULONG pid){
Media * MediaFile::createMedia(const char * dirname, const char * filename, bool withURI) {
Media * rt=NULL;
char *buffer;
- asprintf(&buffer, "%s/%s", dirname, filename);
+ int blen = asprintf(&buffer, "%s/%s", dirname, filename);
+ if (blen); // keep compiler happy because of unused result and unread variable warnings
struct stat st;
ULONG mtype=MEDIA_TYPE_UNKNOWN;
if (stat(buffer, &st) == 0) {
: cReceiver(channel->Ca(), 0, 7, channel->Vpid(), channel->Ppid(), channel->Apid1(), channel->Apid2(), channel->Dpid1(), channel->Dpid2(), channel->Tpid())
#elif VDRVERSNUM < 10500
: cReceiver(channel->Ca(), 0, channel->Vpid(), channel->Apids(), channel->Dpids(), mergeSpidsTpid(channel->Spids(),channel->Tpid()))
-#else
+#elif VDRVERSNUM < 10712
: cReceiver(channel->GetChannelID(), 0, channel->Vpid(), channel->Apids(), channel->Dpids(), mergeSpidsTpid(channel->Spids(),channel->Tpid()))
+#else
+: cReceiver(channel, 0)
#endif
{
logger = Log::getInstance();