mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-11 19:55:25 +00:00
threadshare/rtpjitterbuffer: Use different GType names than used by the C rtpjitterbuffer
Otherwise there are conflicts when using them both in the same process.
This commit is contained in:
parent
1bfa20a656
commit
e5e29b18d1
2 changed files with 5 additions and 1 deletions
|
@ -16,6 +16,10 @@ fn main() {
|
||||||
build.file("src/jitterbuffer/rtpjitterbuffer.c");
|
build.file("src/jitterbuffer/rtpjitterbuffer.c");
|
||||||
build.file("src/jitterbuffer/rtpstats.c");
|
build.file("src/jitterbuffer/rtpstats.c");
|
||||||
|
|
||||||
|
build.define("RTPJitterBuffer", "TsRTPJitterBuffer");
|
||||||
|
build.define("RTPJitterBufferClass", "TsRTPJitterBufferClass");
|
||||||
|
build.define("RTPJitterBufferPrivate", "TsRTPJitterBufferClass");
|
||||||
|
|
||||||
build.compile("libthreadshare-c.a");
|
build.compile("libthreadshare-c.a");
|
||||||
|
|
||||||
println!("cargo:rustc-link-lib=dylib=gstrtp-1.0");
|
println!("cargo:rustc-link-lib=dylib=gstrtp-1.0");
|
||||||
|
|
|
@ -60,7 +60,7 @@ rtp_jitter_buffer_mode_get_type (void)
|
||||||
|
|
||||||
if (!jitter_buffer_mode_type) {
|
if (!jitter_buffer_mode_type) {
|
||||||
jitter_buffer_mode_type =
|
jitter_buffer_mode_type =
|
||||||
g_enum_register_static ("RTPJitterBufferMode", jitter_buffer_modes);
|
g_enum_register_static ("TsRTPJitterBufferMode", jitter_buffer_modes);
|
||||||
}
|
}
|
||||||
return jitter_buffer_mode_type;
|
return jitter_buffer_mode_type;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue