mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Hook up GST_DEBUG log to visual studio output
This commit is contained in:
parent
4fe8238b14
commit
558dd8b32d
3 changed files with 49 additions and 16 deletions
29
Cargo.lock
generated
29
Cargo.lock
generated
|
@ -1607,7 +1607,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gstreamer"
|
name = "gstreamer"
|
||||||
version = "0.14.0"
|
version = "0.14.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1632,7 +1632,7 @@ dependencies = [
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-app-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-app-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-base 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-base 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-base-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-base-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1662,7 +1662,7 @@ dependencies = [
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-audio-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-audio-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
@ -1689,7 +1689,7 @@ dependencies = [
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-base-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-base-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
"libc 0.2.62 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1717,7 +1717,7 @@ dependencies = [
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-base 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-base 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-gl-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-gl-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1750,7 +1750,7 @@ dependencies = [
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-player-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-player-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-video 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-video 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1778,7 +1778,7 @@ dependencies = [
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-sdp-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-sdp-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
]
|
]
|
||||||
|
@ -1815,7 +1815,7 @@ dependencies = [
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-base 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-base 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-base-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-base-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -1845,7 +1845,7 @@ dependencies = [
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-sdp 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-sdp 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-webrtc-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-webrtc-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -2565,6 +2565,7 @@ dependencies = [
|
||||||
"gaol 0.2.0 (git+https://github.com/servo/gaol)",
|
"gaol 0.2.0 (git+https://github.com/servo/gaol)",
|
||||||
"gfx 0.0.1",
|
"gfx 0.0.1",
|
||||||
"gleam 0.6.18 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gleam 0.6.18 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"ipc-channel 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"ipc-channel 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"keyboard-types 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
"keyboard-types 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"layout_thread_2013 0.0.1",
|
"layout_thread_2013 0.0.1",
|
||||||
|
@ -4271,7 +4272,7 @@ dependencies = [
|
||||||
"byte-slice-cast 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"byte-slice-cast 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-app 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-app 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-audio 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-audio 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-base 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-base 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
@ -4303,7 +4304,7 @@ name = "servo-media-gstreamer-render"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/servo/media#7776958f353b5881fa1d6ec97a236940f7a30d16"
|
source = "git+https://github.com/servo/media#7776958f353b5881fa1d6ec97a236940f7a30d16"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-video 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-video 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-media-player 0.1.0 (git+https://github.com/servo/media)",
|
"servo-media-player 0.1.0 (git+https://github.com/servo/media)",
|
||||||
]
|
]
|
||||||
|
@ -4314,7 +4315,7 @@ version = "0.1.0"
|
||||||
source = "git+https://github.com/servo/media#7776958f353b5881fa1d6ec97a236940f7a30d16"
|
source = "git+https://github.com/servo/media#7776958f353b5881fa1d6ec97a236940f7a30d16"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-gl 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-gl 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-video 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-video 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-media-gstreamer-render 0.1.0 (git+https://github.com/servo/media)",
|
"servo-media-gstreamer-render 0.1.0 (git+https://github.com/servo/media)",
|
||||||
|
@ -4327,7 +4328,7 @@ version = "0.1.0"
|
||||||
source = "git+https://github.com/servo/media#7776958f353b5881fa1d6ec97a236940f7a30d16"
|
source = "git+https://github.com/servo/media#7776958f353b5881fa1d6ec97a236940f7a30d16"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"glib 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-gl 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-gl 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"gstreamer-video 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"gstreamer-video 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"servo-media-gstreamer-render 0.1.0 (git+https://github.com/servo/media)",
|
"servo-media-gstreamer-render 0.1.0 (git+https://github.com/servo/media)",
|
||||||
|
@ -6023,7 +6024,7 @@ dependencies = [
|
||||||
"checksum glutin_wgl_sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "f801bbc91efc22dd1c4818a47814fc72bf74d024510451b119381579bfa39021"
|
"checksum glutin_wgl_sys 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "f801bbc91efc22dd1c4818a47814fc72bf74d024510451b119381579bfa39021"
|
||||||
"checksum glx 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "d56d59aa89ba084f04dd4767df10649c65d1ab180a9a0d1eabb9b1d5a28ab2bd"
|
"checksum glx 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "d56d59aa89ba084f04dd4767df10649c65d1ab180a9a0d1eabb9b1d5a28ab2bd"
|
||||||
"checksum gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "61d55bc9202447ca776f6ad0048c36e3312010f66f82ab478e97513e93f3604b"
|
"checksum gobject-sys 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "61d55bc9202447ca776f6ad0048c36e3312010f66f82ab478e97513e93f3604b"
|
||||||
"checksum gstreamer 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3ef25820a32bd6f51191f3eb466499a80f89c00d67a1448c08b9b5f9aebb7613"
|
"checksum gstreamer 0.14.5 (registry+https://github.com/rust-lang/crates.io-index)" = "fa91e470b0cd4b05611f7d0e89caf76e39752156440877f04c23ad34ffc9761c"
|
||||||
"checksum gstreamer-app 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a85485c2db4149ccb24d0b3c6598725743dec254bf757ac7a3684e62b9822c27"
|
"checksum gstreamer-app 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a85485c2db4149ccb24d0b3c6598725743dec254bf757ac7a3684e62b9822c27"
|
||||||
"checksum gstreamer-app-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "41c85ef44d827b9292833203f6623cf6592d5eda06ad1eeefa63bca0cc38ce71"
|
"checksum gstreamer-app-sys 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "41c85ef44d827b9292833203f6623cf6592d5eda06ad1eeefa63bca0cc38ce71"
|
||||||
"checksum gstreamer-audio 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3d4f0bddc4c983105f3a0666d6e3abc88a72aad3d3b862816ed7f8c86aa3e833"
|
"checksum gstreamer-audio 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3d4f0bddc4c983105f3a0666d6e3abc88a72aad3d3b862816ed7f8c86aa3e833"
|
||||||
|
|
|
@ -86,8 +86,9 @@ webxr-api = {git = "https://github.com/servo/webxr"}
|
||||||
[target.'cfg(all(not(target_os = "windows"), not(target_os = "ios"), not(target_os="android"), not(target_arch="arm"), not(target_arch="aarch64")))'.dependencies]
|
[target.'cfg(all(not(target_os = "windows"), not(target_os = "ios"), not(target_os="android"), not(target_arch="arm"), not(target_arch="aarch64")))'.dependencies]
|
||||||
gaol = {git = "https://github.com/servo/gaol"}
|
gaol = {git = "https://github.com/servo/gaol"}
|
||||||
|
|
||||||
[target.'cfg(any(target_os = "android", target_arch = "x86_64", target_os = "windows"))'.dependencies.servo-media-gstreamer]
|
[target.'cfg(any(target_os = "android", target_arch = "x86_64", target_os = "windows"))'.dependencies]
|
||||||
git = "https://github.com/servo/media"
|
gstreamer = "0.14.5"
|
||||||
|
servo-media-gstreamer= {git = "https://github.com/servo/media"}
|
||||||
|
|
||||||
[target.'cfg(not(any(target_os = "android", target_arch = "x86_64", target_os = "windows")))'.dependencies.servo-media-dummy]
|
[target.'cfg(not(any(target_os = "android", target_arch = "x86_64", target_os = "windows")))'.dependencies.servo-media-dummy]
|
||||||
git = "https://github.com/servo/media"
|
git = "https://github.com/servo/media"
|
||||||
|
|
|
@ -130,6 +130,34 @@ mod media_platform {
|
||||||
use super::ServoMedia;
|
use super::ServoMedia;
|
||||||
use servo_media_gstreamer::GStreamerBackend;
|
use servo_media_gstreamer::GStreamerBackend;
|
||||||
|
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
fn set_gstreamer_log_handler() {
|
||||||
|
use gstreamer::{debug_add_log_function, debug_remove_default_log_function, DebugLevel};
|
||||||
|
|
||||||
|
debug_remove_default_log_function();
|
||||||
|
debug_add_log_function(|cat, level, file, function, line, _, message| {
|
||||||
|
let message = format!(
|
||||||
|
"{:?} {:?} {:?}:{:?}:{:?} {:?}",
|
||||||
|
cat.get_name(),
|
||||||
|
level,
|
||||||
|
file,
|
||||||
|
line,
|
||||||
|
function,
|
||||||
|
message
|
||||||
|
);
|
||||||
|
match level {
|
||||||
|
DebugLevel::Debug => debug!("{}", message),
|
||||||
|
DebugLevel::Error => error!("{}", message),
|
||||||
|
DebugLevel::Warning => warn!("{}", message),
|
||||||
|
DebugLevel::Fixme | DebugLevel::Info => info!("{}", message),
|
||||||
|
DebugLevel::Memdump | DebugLevel::Count | DebugLevel::Trace => {
|
||||||
|
trace!("{}", message)
|
||||||
|
},
|
||||||
|
_ => (),
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
pub fn init() {
|
pub fn init() {
|
||||||
// UWP apps have the working directory set appropriately. Win32 apps
|
// UWP apps have the working directory set appropriately. Win32 apps
|
||||||
|
@ -195,6 +223,9 @@ mod media_platform {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
ServoMedia::init_with_backend(backend);
|
ServoMedia::init_with_backend(backend);
|
||||||
|
if cfg!(feature = "uwp") {
|
||||||
|
set_gstreamer_log_handler();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue