Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(636)

Unified Diff: webrtc/media/engine/webrtcvideodecoderfactory.h

Issue 2052233002: Enable passing receive stream ID to the decoder factory. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: pthatcher1's solution implemented Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/media/engine/webrtcvideodecoderfactory.h
diff --git a/webrtc/media/engine/webrtcvideodecoderfactory.h b/webrtc/media/engine/webrtcvideodecoderfactory.h
index c739096ac5c190671432b3259033ceff11489455..2062332ef25d85592cfcbeb07063609739a598e0 100644
--- a/webrtc/media/engine/webrtcvideodecoderfactory.h
+++ b/webrtc/media/engine/webrtcvideodecoderfactory.h
@@ -20,12 +20,20 @@ class VideoDecoder;
namespace cricket {
+struct WebRtcVideoDecoderFactoryParams {
pthatcher1 2016/06/15 19:40:00 This should be called VideoDecoderParams.
+ std::string receive_stream_id;
+};
+
class WebRtcVideoDecoderFactory {
public:
// Caller takes the ownership of the returned object and it should be released
// by calling DestroyVideoDecoder().
virtual webrtc::VideoDecoder* CreateVideoDecoder(
webrtc::VideoCodecType type) = 0;
+ virtual webrtc::VideoDecoder* CreateVideoDecoder(
+ webrtc::VideoCodecType type, WebRtcVideoDecoderFactoryParams params) {
+ return CreateVideoDecoder(type);
+ }
virtual ~WebRtcVideoDecoderFactory() {}
virtual void DestroyVideoDecoder(webrtc::VideoDecoder* decoder) = 0;

Powered by Google App Engine
This is Rietveld 408576698