Title: [184537] trunk/Source/WebCore
Revision
184537
Author
[email protected]
Date
2015-05-18 18:39:27 -0700 (Mon, 18 May 2015)

Log Message

Fix uninitialized warnings in RealtimeMediaSourceCenterOwr.cpp
https://bugs.webkit.org/show_bug.cgi?id=145119

Reviewed by Gyuyoung Kim.

* platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp:
(WebCore::RealtimeMediaSourceCenterOwr::validateRequestConstraints):
(WebCore::RealtimeMediaSourceCenterOwr::mediaSourcesAvailable):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (184536 => 184537)


--- trunk/Source/WebCore/ChangeLog	2015-05-19 01:35:57 UTC (rev 184536)
+++ trunk/Source/WebCore/ChangeLog	2015-05-19 01:39:27 UTC (rev 184537)
@@ -1,3 +1,14 @@
+2015-05-18  Csaba Osztrogonác  <[email protected]>
+
+        Fix uninitialized warnings in RealtimeMediaSourceCenterOwr.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=145119
+
+        Reviewed by Gyuyoung Kim.
+
+        * platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp:
+        (WebCore::RealtimeMediaSourceCenterOwr::validateRequestConstraints):
+        (WebCore::RealtimeMediaSourceCenterOwr::mediaSourcesAvailable):
+
 2015-05-18  Michael Catanzaro  <[email protected]>
 
         [CMake] Ignore warnings in system headers

Modified: trunk/Source/WebCore/platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp (184536 => 184537)


--- trunk/Source/WebCore/platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp	2015-05-19 01:35:57 UTC (rev 184536)
+++ trunk/Source/WebCore/platform/mediastream/openwebrtc/RealtimeMediaSourceCenterOwr.cpp	2015-05-19 01:39:27 UTC (rev 184537)
@@ -89,7 +89,7 @@
     RefPtr<MediaConstraints> audioConstraints = prpAudioConstraints;
     RefPtr<MediaConstraints> videoConstraints = prpVideoConstraints;
 
-    int types;
+    int types = OWR_MEDIA_TYPE_UNKNOWN;
     if (audioConstraints)
         types |= OWR_MEDIA_TYPE_AUDIO;
     if (videoConstraints)
@@ -156,8 +156,10 @@
             sourceType = RealtimeMediaSource::Audio;
         else if (mediaType & OWR_MEDIA_TYPE_VIDEO)
             sourceType = RealtimeMediaSource::Video;
-        else
+        else {
+            sourceType = RealtimeMediaSource::None;
             ASSERT_NOT_REACHED();
+        }
 
         RefPtr<RealtimeMediaSourceOwr> mediaSource = adoptRef(new RealtimeMediaSourceOwr(source, id, sourceType, sourceName));
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to