Commit 2b0eca38 authored by Simon Morlat's avatar Simon Morlat

return the default renderer

parent c8c55016
......@@ -528,6 +528,11 @@ MS2_PUBLIC MSVideoSize video_stream_get_sent_video_size(const VideoStream *strea
*/
MS2_PUBLIC MSVideoSize video_stream_get_received_video_size(const VideoStream *stream);
/**
* Returns the name of the video display filter on the current platform.
**/
const char *video_stream_get_default_video_renderer(void);
MS2_PUBLIC void video_stream_enable_self_view(VideoStream *stream, bool_t val);
MS2_PUBLIC unsigned long video_stream_get_native_window_id(VideoStream *stream);
MS2_PUBLIC void video_stream_set_native_window_id(VideoStream *stream, unsigned long id);
......
......@@ -107,24 +107,28 @@ void video_stream_iterate(VideoStream *stream){
media_stream_iterate(&stream->ms);
}
static void choose_display_name(VideoStream *stream){
const char *video_stream_get_default_video_renderer(void){
#ifdef WIN32
stream->display_name=ms_strdup("MSDrawDibDisplay");
retur "MSDrawDibDisplay";
#elif defined(ANDROID)
stream->display_name=ms_strdup("MSAndroidDisplay");
return "MSAndroidDisplay";
#elif __APPLE__ && !defined(__ios)
stream->display_name=ms_strdup("MSOSXGLDisplay");
return "MSOSXGLDisplay";
#elif defined (HAVE_XV)
stream->display_name=ms_strdup("MSX11Video");
return "MSX11Video";
#elif defined(HAVE_GL)
stream->display_name=ms_strdup("MSGLXVideo");
return "MSGLXVideo";
#elif defined(__ios)
stream->display_name=ms_strdup("IOSDisplay");
return "IOSDisplay";
#else
stream->display_name=ms_strdup("MSVideoOut");
return "MSVideoOut";
#endif
}
static void choose_display_name(VideoStream *stream){
stream->display_name=ms_strdup(video_stream_get_default_video_renderer());
}
VideoStream *video_stream_new(int loc_rtp_port, int loc_rtcp_port, bool_t use_ipv6){
VideoStream *stream = (VideoStream *)ms_new0 (VideoStream, 1);
stream->ms.type = VideoStreamType;
......
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