int _gst_filesrc_pipeline_set_state(webrtc_s *webrtc, GstState state);
int _set_filesrc_looping(webrtc_s *webrtc, unsigned int source_id, bool looping);
int _get_filesrc_looping(webrtc_s *webrtc, unsigned int source_id, bool *looping);
-int _remove_filesrc_pad_block_probe(webrtc_s *webrtc);
+int _remove_all_filesrc_pad_block_probes(webrtc_s *webrtc);
void _set_filesrc_media_types(webrtc_gst_slot_s *source, const char *path);
int _build_filesrc_pipeline(webrtc_s *webrtc, webrtc_gst_slot_s *source);
void _destroy_filesrc_pipeline(webrtc_gst_slot_s *source);
if (new == WEBRTC_STATE_PLAYING) {
_init_stats_all_fields_list();
_set_stats_timer(webrtc);
- _remove_filesrc_pad_block_probe(webrtc);
+ _remove_all_filesrc_pad_block_probes(webrtc);
}
GENERATE_DOT(webrtc, webrtc->gst.pipeline, "%s.state_%s", GST_ELEMENT_NAME(webrtc->gst.pipeline), __state_str[webrtc->state]);
}
}
-int _remove_filesrc_pad_block_probe(webrtc_s *webrtc)
+int _remove_all_filesrc_pad_block_probes(webrtc_s *webrtc)
{
RET_VAL_IF(webrtc == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtc is NULL");