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

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: Formatting 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
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvideoengine2.h » ('j') | webrtc/video_decoder.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/engine/webrtcvideodecoderfactory.h
diff --git a/webrtc/media/engine/webrtcvideodecoderfactory.h b/webrtc/media/engine/webrtcvideodecoderfactory.h
index c739096ac5c190671432b3259033ceff11489455..c82e047a3e55bd0ddeb6cf526906366087ad2505 100644
--- a/webrtc/media/engine/webrtcvideodecoderfactory.h
+++ b/webrtc/media/engine/webrtcvideodecoderfactory.h
@@ -22,6 +22,14 @@ namespace cricket {
class WebRtcVideoDecoderFactory {
public:
+ // Some VideoDecoderFactories may choose to override this method for example
+ // to store the SSRC. Default behavior is just to call CreateVideoDecoder.
+ virtual webrtc::VideoDecoder* CreateVideoDecoderForSsrc(
perkj_webrtc 2016/06/10 13:46:39 nit: Can you move this to below the existing Creat
sakal 2016/06/14 13:28:44 Done.
+ uint32_t ssrc,
+ webrtc::VideoCodecType type) {
+ return CreateVideoDecoder(type);
+ }
+
// Caller takes the ownership of the returned object and it should be released
// by calling DestroyVideoDecoder().
virtual webrtc::VideoDecoder* CreateVideoDecoder(
« no previous file with comments | « no previous file | webrtc/media/engine/webrtcvideoengine2.h » ('j') | webrtc/video_decoder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698