Linux/arm compilation fix

libc::c_char is u8 rather than i8 there, unlike Linux/x86_64 or OS X.
Use correct type to compile on all platforms.
This commit is contained in:
Scott Lamb 2017-09-23 21:12:17 -07:00
parent 45b508dff6
commit cb689b2ec8
1 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@
use error::Error;
use h264;
use moonfire_ffmpeg;
use std::os::raw::c_char;
use std::ffi::{CStr, CString};
use std::result::Result;
use std::sync;
@ -72,7 +73,7 @@ impl Ffmpeg {
macro_rules! c_str {
($s:expr) => { {
unsafe { CStr::from_ptr(concat!($s, "\0").as_ptr() as *const i8) }
unsafe { CStr::from_ptr(concat!($s, "\0").as_ptr() as *const c_char) }
} }
}