From f5948ed9f21e65288f8772a3a9df0ab68bf4f727 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 27 七月 2017 12:51:44 +0800
Subject: [PATCH] 

---
 RtspFace/PL_Gainer.cpp |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/RtspFace/PL_Gainer.cpp b/RtspFace/PL_Gainer.cpp
index 5e423dd..944ff74 100644
--- a/RtspFace/PL_Gainer.cpp
+++ b/RtspFace/PL_Gainer.cpp
@@ -67,7 +67,7 @@
 	
 }
 
-void pl_gainer_deleter_func(PipeMaterial* pm)
+void pl_gainer_deleter_func(PipeMaterial* pm, bool lastRet)
 {
 	PL_Gainer_Internal* in = (PL_Gainer_Internal*)(pm->args);
 
@@ -88,7 +88,7 @@
 		break;
 		default:
 			//#todo support list or pm::copier operator
-			LOG_ERROR << "Only support PMT_BYTES / PMT_FRAME";
+			LOG_ERROR << "Only support PMT_BYTES / PMT_FRAME" << std::endl;
 			return;
 		}
 	}
@@ -99,7 +99,7 @@
 
 bool PL_Gainer::pay(const PipeMaterial& pm)
 {
-	return true;
+	return false;
 }
 
 bool PL_Gainer::gain(PipeMaterial& pm)
@@ -130,7 +130,7 @@
 		break;
 		default:
 			//#todo support list or pm::copier operator
-			LOG_ERROR << "Only support PMT_BYTES / PMT_FRAME";
+			LOG_ERROR << "Only support PMT_BYTES / PMT_FRAME" << std::endl;
 			return false;
 		}
 		
@@ -140,7 +140,7 @@
 		newPm.former = this;
 		
 		if (pm.deleter != nullptr)
-			(pm.deleter)(&pm);
+			(pm.deleter)(&pm, false);//#todo
 		
 		pm = newPm;
 		return true;

--
Gitblit v1.8.0