Commit e09b7d29 authored by Ghislain MARY's avatar Ghislain MARY

Add missing const keywords.

parent 36f18a7c
......@@ -440,14 +440,14 @@ MS2_PUBLIC void video_stream_set_sent_video_size(VideoStream *stream, MSVideoSiz
* @param[in] stream The videostream for which to get the sent video size.
* @return The sent video size or MS_VIDEO_SIZE_UNKNOWN if not available.
*/
MS2_PUBLIC MSVideoSize video_stream_get_sent_video_size(VideoStream *stream);
MS2_PUBLIC MSVideoSize video_stream_get_sent_video_size(const VideoStream *stream);
/**
* Gets the size of the video that is received.
* @param[in] stream The videostream for which to get the received video size.
* @return The received video size or MS_VIDEO_SIZE_UNKNOWN if not available.
*/
MS2_PUBLIC MSVideoSize video_stream_get_received_video_size(VideoStream *stream);
MS2_PUBLIC MSVideoSize video_stream_get_received_video_size(const VideoStream *stream);
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);
......
......@@ -167,7 +167,7 @@ void video_stream_set_sent_video_size(VideoStream *stream, MSVideoSize vsize){
stream->sent_vsize=vsize;
}
MSVideoSize video_stream_get_sent_video_size(VideoStream *stream) {
MSVideoSize video_stream_get_sent_video_size(const VideoStream *stream) {
MSVideoSize vsize = MS_VIDEO_SIZE_UNKNOWN;
if (stream->ms.encoder != NULL) {
ms_filter_call_method(stream->ms.encoder, MS_FILTER_GET_VIDEO_SIZE, &vsize);
......@@ -175,7 +175,7 @@ MSVideoSize video_stream_get_sent_video_size(VideoStream *stream) {
return vsize;
}
MSVideoSize video_stream_get_received_video_size(VideoStream *stream) {
MSVideoSize video_stream_get_received_video_size(const VideoStream *stream) {
MSVideoSize vsize = MS_VIDEO_SIZE_UNKNOWN;
if (stream->ms.decoder != NULL) {
ms_filter_call_method(stream->ms.decoder, MS_FILTER_GET_VIDEO_SIZE, &vsize);
......
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