Преглед изворни кода

cleanup: Renames a confusingly named function.

dev1
Boris Grozev пре 9 година
родитељ
комит
a601ec1e4a
1 измењених фајлова са 4 додато и 5 уклоњено
  1. 4
    5
      modules/statistics/RTPStatsCollector.js

+ 4
- 5
modules/statistics/RTPStatsCollector.js Прегледај датотеку

122
 };
122
 };
123
 
123
 
124
 /**
124
 /**
125
- * Sets resolution that belong to the ssrc
126
- * represented by this instance.
125
+ * Sets resolution that belong to the ssrc represented by this instance.
127
  * @param resolution new resolution value to be set.
126
  * @param resolution new resolution value to be set.
128
  */
127
  */
129
-PeerStats.prototype.setSsrcResolution = function (resolution) {
128
+PeerStats.prototype.setResolution = function (resolution) {
130
     this.resolution = resolution || {};
129
     this.resolution = resolution || {};
131
 };
130
 };
132
 
131
 
648
         catch(e){/*not supported*/}
647
         catch(e){/*not supported*/}
649
 
648
 
650
         if (resolution.height && resolution.width) {
649
         if (resolution.height && resolution.width) {
651
-            ssrcStats.setSsrcResolution(resolution);
650
+            ssrcStats.setResolution(resolution);
652
         } else {
651
         } else {
653
-            ssrcStats.setSsrcResolution(null);
652
+            ssrcStats.setResolution(null);
654
         }
653
         }
655
     }
654
     }
656
 
655
 

Loading…
Откажи
Сачувај