Commit 3c87d9b2 authored by François Grisez's avatar François Grisez
Browse files

Fix build with Visual Studio

parent 5d245fe6
...@@ -2146,7 +2146,8 @@ static MKVTrackPlayer *mkv_track_player_new(MKVReader *reader, const MKVTrack *t ...@@ -2146,7 +2146,8 @@ static MKVTrackPlayer *mkv_track_player_new(MKVReader *reader, const MKVTrack *t
obj->track = track; obj->track = track;
if(track->type == MKV_TRACK_TYPE_VIDEO) { if(track->type == MKV_TRACK_TYPE_VIDEO) {
MKVVideoTrack *v_track = (MKVVideoTrack *)track; MKVVideoTrack *v_track = (MKVVideoTrack *)track;
obj->output_pin_desc = ms_factory_get_video_format(ms_factory_get_fallback(), codec_name, (MSVideoSize){v_track->width, v_track->height}, v_track->frame_rate,NULL); MSVideoSize vsize = {v_track->width, v_track->height};
obj->output_pin_desc = ms_factory_get_video_format(ms_factory_get_fallback(), codec_name, vsize, v_track->frame_rate,NULL);
} else if(track->type == MKV_TRACK_TYPE_AUDIO) { } else if(track->type == MKV_TRACK_TYPE_AUDIO) {
MKVAudioTrack *a_track = (MKVAudioTrack *)track; MKVAudioTrack *a_track = (MKVAudioTrack *)track;
obj->output_pin_desc = ms_factory_get_audio_format(ms_factory_get_fallback(), codec_name, a_track->sampling_freq, a_track->channels, NULL); obj->output_pin_desc = ms_factory_get_audio_format(ms_factory_get_fallback(), codec_name, a_track->sampling_freq, a_track->channels, NULL);
......
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