Skip to content

Commit

Permalink
lib: Omit vlc_Log since it is crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Jun 4, 2016
1 parent afdbc4a commit f53bda3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@ pub use types::*;

macro_rules! vlc_Log {
($demux:expr, $priority:expr, $module:expr, $format:expr) => {{
unsafe {
vlc_Log($demux as *mut vlc_object_t, $priority.to_c(), $module.as_ptr(), $format.as_ptr())
}
// println!("{:?}", &($format)[..]);
// unsafe {
// vlc_Log($demux as *mut vlc_object_t, $priority.to_c(), $module.as_ptr(), $format.as_ptr())
// }
}};
($demux:expr, $priority:expr, $module:expr, $format:expr, $($args:expr),*) => {{
unsafe {
vlc_Log($demux as *mut vlc_object_t, $priority.to_c(), $module.as_ptr(), $ format.as_ptr(),
$($args),*)
}
// println!("{:?} and args", &($format)[..]);
// unsafe {
// vlc_Log($demux as *mut vlc_object_t, $priority.to_c(), $module.as_ptr(), $ format.as_ptr(),
// $($args),*)
// }
}};
}

Expand Down

0 comments on commit f53bda3

Please # to comment.