Index: webrtc/video_encoder.h |
diff --git a/webrtc/video_encoder.h b/webrtc/video_encoder.h |
index d28533b9fd062f23c12cf1ff10f984b501f90259..bf58737e765ab8111fcd911a92bac27b642e55d0 100644 |
--- a/webrtc/video_encoder.h |
+++ b/webrtc/video_encoder.h |
@@ -54,23 +54,10 @@ class EncodedImageCallback { |
}; |
// Callback function which is called when an image has been encoded. |
- virtual Result OnEncodedImage(const EncodedImage& encoded_image, |
- const CodecSpecificInfo* codec_specific_info, |
- const RTPFragmentationHeader* fragmentation) { |
- return (Encoded(encoded_image, codec_specific_info, fragmentation) == 0) |
- ? Result(Result::OK, 0) |
- : Result(Result::ERROR_SEND_FAILED); |
- } |
- |
- // DEPRECATED. |
- // TODO(sergeyu): Remove this method. |
- virtual int32_t Encoded(const EncodedImage& encoded_image, |
stefan-webrtc
2016/10/31 15:10:35
Is I assume this is safe to remove now and that no
Sergey Ulanov
2016/10/31 18:29:32
Yes, I believe it's not being used anywhere anymor
|
- const CodecSpecificInfo* codec_specific_info, |
- const RTPFragmentationHeader* fragmentation) { |
- Result result = |
- OnEncodedImage(encoded_image, codec_specific_info, fragmentation); |
- return (result.error != Result::OK) ? -1 : (result.drop_next_frame ? 1 : 0); |
- } |
+ virtual Result OnEncodedImage( |
+ const EncodedImage& encoded_image, |
+ const CodecSpecificInfo* codec_specific_info, |
+ const RTPFragmentationHeader* fragmentation) = 0; |
}; |
class VideoEncoder { |