mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-03 18:23:49 +00:00
Update to reqwest 0.8
This commit is contained in:
parent
d8dbe8414c
commit
d4138cb566
2 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ license = "MIT/Apache-2.0"
|
||||||
url = "1.1"
|
url = "1.1"
|
||||||
gst-plugin = { path="../gst-plugin" }
|
gst-plugin = { path="../gst-plugin" }
|
||||||
gst-plugin-simple = { path="../gst-plugin-simple" }
|
gst-plugin-simple = { path="../gst-plugin-simple" }
|
||||||
reqwest = "0.7"
|
reqwest = "0.8"
|
||||||
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
gstreamer = { git = "https://github.com/sdroege/gstreamer-rs", features = ["v1_10"] }
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
|
|
@ -50,7 +50,7 @@ impl HttpSrc {
|
||||||
gst::DebugColorFlags::empty(),
|
gst::DebugColorFlags::empty(),
|
||||||
"Rust HTTP source",
|
"Rust HTTP source",
|
||||||
),
|
),
|
||||||
client: Client::new().unwrap(),
|
client: Client::new(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ impl HttpSrc {
|
||||||
stop: Option<u64>,
|
stop: Option<u64>,
|
||||||
) -> Result<StreamingState, ErrorMessage> {
|
) -> Result<StreamingState, ErrorMessage> {
|
||||||
let cat = self.cat;
|
let cat = self.cat;
|
||||||
let mut req = self.client.get(uri.clone()).unwrap();
|
let mut req = self.client.get(uri.clone());
|
||||||
|
|
||||||
match (start != 0, stop) {
|
match (start != 0, stop) {
|
||||||
(false, None) => (),
|
(false, None) => (),
|
||||||
|
|
Loading…
Reference in a new issue