From 1193c6354b83a1d7d8af9d27b5824c68508d1089 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Fri, 20 May 2016 16:02:05 +0200 Subject: [PATCH] Revert "Debug copies" This reverts commit 6010d8bbfee203408c955685cfe017f095b6a44d. --- src/output/output.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/output/output.cpp b/src/output/output.cpp index 9738b122..403a31b1 100644 --- a/src/output/output.cpp +++ b/src/output/output.cpp @@ -1023,41 +1023,6 @@ namespace Mist { }else{ //after ~25 seconds, give up and drop the track. WARN_MSG("Empty packet on track %u (%s) @ key %lu (next=%d) - could not reload, dropping track.", nxt.tid, myMeta.tracks[nxt.tid].type.c_str(), nxtKeyNum[nxt.tid]+1, nextPage); - - - - - char tmpPageName[NAME_BUFFER_SIZE]; -//DATA - snprintf(tmpPageName, NAME_BUFFER_SIZE, "pid%d_stream:%s_track:%d_key:%d_DATA", getpid(), streamName.c_str(), nxt.tid, nxtKeyNum[nxt.tid]+1); - { - IPC::sharedPage tmpPage(tmpPageName, DEFAULT_META_PAGE_SIZE, true); - memcpy(tmpPage.mapped, nProxy.curPage[nxt.tid].mapped, DEFAULT_META_PAGE_SIZE); - tmpPage.master=false; - } -//TRID - snprintf(tmpPageName, NAME_BUFFER_SIZE, "pid%d_stream:%s_track:%d_key:%d_TRID", getpid(), streamName.c_str(), nxt.tid, nxtKeyNum[nxt.tid]+1); - { - IPC::sharedPage tmpPage(tmpPageName, 8 * 1024 * 1024, true); - memcpy(tmpPage.mapped, nProxy.metaPages[nxt.tid].mapped, nProxy.metaPages[nxt.tid].len); - tmpPage.master=false; - } -//META - snprintf(tmpPageName, NAME_BUFFER_SIZE, "pid%d_stream:%s_track:%d_key:%d_META", getpid(), streamName.c_str(), nxt.tid, nxtKeyNum[nxt.tid]+1); - { - IPC::sharedPage tmpPage(tmpPageName, DEFAULT_STRM_PAGE_SIZE, true); - memcpy(tmpPage.mapped, nProxy.metaPages[0].mapped, nProxy.metaPages[0].len); - tmpPage.master=false; - } - - - - - - - - - } //keep updating the metadata at 250ms intervals while waiting for more data Util::wait(250);