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:
Sebastian Dröge 2020-03-04 16:23:39 +02:00 committed by Sebastian Dröge
parent 1bfa20a656
commit e5e29b18d1
2 changed files with 5 additions and 1 deletions

View file

@ -16,6 +16,10 @@ fn main() {
build.file("src/jitterbuffer/rtpjitterbuffer.c");
build.file("src/jitterbuffer/rtpstats.c");
build.define("RTPJitterBuffer", "TsRTPJitterBuffer");
build.define("RTPJitterBufferClass", "TsRTPJitterBufferClass");
build.define("RTPJitterBufferPrivate", "TsRTPJitterBufferClass");
build.compile("libthreadshare-c.a");
println!("cargo:rustc-link-lib=dylib=gstrtp-1.0");

View file

@ -60,7 +60,7 @@ rtp_jitter_buffer_mode_get_type (void)
if (!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;
}