guint clock_rate;
GValueArray *source_stats;
GstStructure *s;
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
+ guint mline;
+#endif
};
static gboolean
/* skip foreign sources */
if (gst_structure_get_uint (stats, "ssrc", &stats_ssrc) &&
entry->ssrc == stats_ssrc)
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
+ {
+ if (g_strrstr (ts_stats->codec_id, "src") &&
+ entry->media_idx != ts_stats->mline)
+ continue;
+ /* FIXME: add condition to make 'kind' value valid in outbound-rtp */
+#endif
_get_stats_from_rtp_source_stats (ts_stats->webrtc, ts_stats->stream,
stats, ts_stats->codec_id, ts_stats->kind, ts_stats->transport_id,
ts_stats->s);
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
+ }
+#endif
else if (gst_structure_get_uint (stats, "rb-ssrc", &stats_ssrc)
&& entry->ssrc == stats_ssrc)
_get_stats_from_remote_rtp_source_stats (ts_stats->webrtc,
if (!ts_stats.stream->transport)
goto out;
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
+ ts_stats.mline = wpad->trans->mline;
+#endif
g_signal_emit_by_name (webrtc->rtpbin, "get-internal-session",
ts_stats.stream->session_id, &rtp_session);
g_object_get (rtp_session, "stats", &rtp_stats, NULL);