From b9d3a5a8523bcb45cc9b5216557a4fdc4dfa209f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 29 Dec 2018 00:05:22 +0200 Subject: [PATCH] video: Fix compilation with features=v1_10 --- gstreamer-video/src/video_time_code.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gstreamer-video/src/video_time_code.rs b/gstreamer-video/src/video_time_code.rs index 5d01888d8..858aec83f 100644 --- a/gstreamer-video/src/video_time_code.rs +++ b/gstreamer-video/src/video_time_code.rs @@ -19,6 +19,7 @@ use std::cmp; use std::fmt; use std::mem; use std::ptr; +#[cfg(any(feature = "v1_12", feature = "dox"))] use std::str; use VideoTimeCodeFlags; @@ -453,6 +454,7 @@ macro_rules! generic_impl { generic_impl!(VideoTimeCode); generic_impl!(ValidVideoTimeCode); +#[cfg(any(feature = "v1_12", feature = "dox"))] impl str::FromStr for VideoTimeCode { type Err = ();