Commit e2da538b authored by Ghislain MARY's avatar Ghislain MARY

Fix build without video.

parent ad7571fa
......@@ -617,6 +617,8 @@ void video_stream_open_player(VideoStream *stream, MSFilter *sink){
void video_stream_close_player(VideoStream *stream){
}
void video_stream_enable_recording(VideoStream *stream, bool_t enabled) {}
const char *video_stream_get_default_video_renderer(void){
return NULL;
}
......
......@@ -106,7 +106,7 @@ void video_recorder_handle_event(void *userdata, MSFilter *recorder, unsigned in
void ms_audio_flow_control_event_handler(void *user_data, MSFilter *f, unsigned int event, void *eventdata);
void video_stream_enable_recording(VideoStream *stream, int enabled);
void video_stream_enable_recording(VideoStream *stream, bool_t enabled);
#ifdef __cplusplus
}
......
......@@ -1858,7 +1858,7 @@ void video_stream_use_video_preset(VideoStream *stream, const char *preset) {
/*this function optimizes the processing by enabling the duplication of video packets to the recorder, which is not required to be done
* when the recorder is not recording of course.*/
void video_stream_enable_recording(VideoStream *stream, int enabled){
void video_stream_enable_recording(VideoStream *stream, bool_t enabled){
if (stream->tee3){
int pin = 1;
ms_filter_call_method(stream->tee3, enabled ? MS_TEE_UNMUTE : MS_TEE_MUTE, &pin);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment