Move include files in debian packge into 'senf' subdirectory
[senf.git] / Examples / DVBAdapter / MPEdec.cc
index 3a95687..50ecf3c 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 //
-// Copyright (C) 2006
+// Copyright (C) 2007
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-//     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+//     Thorsten Horstmann <thorsten.horstmann@fokus.fraunhofer.de>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 #include <linux/sockios.h>
 #include <linux/dvb/dmx.h> 
 
-#include "Scheduler/Scheduler.hh"
-#include "Packets/DefaultBundle/EthernetPacket.hh"
-#include "Packets/MPEGDVBBundle/DatagramSection.hh"
-#include "Utils/membind.hh"
-#include "Utils/hexdump.hh"
-#include "Socket/Protocols/DVB/DVBDemuxHandles.hh"
-#include "Packets/ParseInt.hh"
-#include "Packets/Packet.hh"
-#include "Packets/PacketData.hh"
+#include "../../Scheduler/Scheduler.hh"
+#include "../../Packets/DefaultBundle/EthernetPacket.hh"
+#include "../../Packets/MPEGDVBBundle/DatagramSection.hh"
+#include "../../Utils/membind.hh"
+#include "../../Utils/hexdump.hh"
+#include "../../Socket/Protocols/DVB/DVBDemuxHandles.hh"
+#include "../../Packets/ParseInt.hh"
+#include "../../Packets/Packet.hh"
+#include "../../Packets/PacketData.hh"
 
 #define PID 500
 
@@ -72,7 +72,7 @@ private:
         std::string data (handle.read());
         senf::DatagramSection section (senf::DatagramSection::create(data));
         section.dump(std::cout);
-        senf::PacketData & datagramData (section.last().data());
+        senf::PacketData & datagramData (section.next().data());
         senf::hexdump(datagramData.begin(), datagramData.end(), std::cout);
     }
 };