Commit 200c3523 authored by Simon Morlat's avatar Simon Morlat

add MSUnknownMedia enum type

parent c8c9ef1c
......@@ -30,7 +30,8 @@ extern "C"{
typedef enum _MSFormatType{
MSAudio,
MSVideo,
MSText
MSText,
MSUnknownMedia
}MSFormatType;
/**
......
......@@ -351,6 +351,7 @@ const char * ms_format_type_to_string(MSFormatType type){
case MSAudio: return "MSAudio";
case MSVideo: return "MSVideo";
case MSText: return "MSText";
case MSUnknownMedia: return "MSUnknownMedia";
}
return "invalid";
}
......@@ -415,14 +415,16 @@ bool_t media_stream_secured (const MediaStream *stream) {
return FALSE;
switch (stream->type) {
case MSAudio:
case MSText:
/*fixme need also audio stream direction to be more precise*/
return ms_media_stream_sessions_secured(&stream->sessions, MediaStreamSendRecv);
case MSVideo:{
VideoStream *vs = (VideoStream*)stream;
return ms_media_stream_sessions_secured(&stream->sessions, vs->dir);
}
case MSAudio:
case MSText:
/*fixme need also audio stream direction to be more precise*/
return ms_media_stream_sessions_secured(&stream->sessions, MediaStreamSendRecv);
case MSVideo:{
VideoStream *vs = (VideoStream*)stream;
return ms_media_stream_sessions_secured(&stream->sessions, vs->dir);
}
case MSUnknownMedia:
break;
}
return FALSE;
}
......
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