int _complete_mediapacketsrc_from_encoded_format(webrtc_s *webrtc, webrtc_gst_slot_s *source);
GstCaps *_make_mediapacketsrc_raw_caps_from_media_format(webrtc_gst_slot_s *source);
int _push_media_packet(webrtc_s *webrtc, unsigned int source_id, media_packet_h packet);
+int _set_mediapacketsrc_codec_info(webrtc_s *webrtc, webrtc_gst_slot_s *source, media_format_mimetype_e mime_type);
bool _check_if_path_is_set_to_file_sources(webrtc_s *webrtc);
int _set_rtp_packet_drop_probability(webrtc_s *webrtc, unsigned int source_id, float probability);
GstCaps *_get_caps_from_encoded_audio_media_type(const char *media_type, int channels, int samplerate);
GstCaps *_get_caps_from_encoded_video_media_type(const char *media_type, int width, int height);
GstCaps *_make_rtp_caps(const gchar *media_type, unsigned int payload_type, webrtc_gst_slot_s *source);
-int _set_mediapacketsrc_codec_info(webrtc_s *webrtc, webrtc_gst_slot_s *source, media_format_mimetype_e mime_type);
int _get_screen_resolution(int *width, int *height);
const char *_get_element_name(int av_idx, gst_element_e element);
int _set_payload_type(webrtc_s *webrtc, webrtc_gst_slot_s *source, int av_idx, const gchar *media_type);
}
//LCOV_EXCL_START
-static void _appsrc_need_data_cb(GstElement *appsrc, guint size, gpointer data)
+static void __appsrc_need_data_cb(GstElement *appsrc, guint size, gpointer data)
{
webrtc_gst_slot_s *source = (webrtc_gst_slot_s *)data;
LOG_DEBUG("<<< end of the callback");
}
-static void _appsrc_enough_data_cb(GstElement *appsrc, gpointer data)
+static void __appsrc_enough_data_cb(GstElement *appsrc, gpointer data)
{
webrtc_gst_slot_s *source = (webrtc_gst_slot_s *)data;
"format", GST_FORMAT_TIME,
NULL);
- _connect_and_append_signal(&source->signals, G_OBJECT(appsrc), "need-data", G_CALLBACK(_appsrc_need_data_cb), source);
- _connect_and_append_signal(&source->signals, G_OBJECT(appsrc), "enough-data", G_CALLBACK(_appsrc_enough_data_cb), source);
+ _connect_and_append_signal(&source->signals, G_OBJECT(appsrc), "need-data", G_CALLBACK(__appsrc_need_data_cb), source);
+ _connect_and_append_signal(&source->signals, G_OBJECT(appsrc), "enough-data", G_CALLBACK(__appsrc_enough_data_cb), source);
gst_bin_add(source->bin, appsrc);