mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-26 10:00:38 +00:00
video: Don't unref video codec state in set_format()
This commit is contained in:
parent
be9434e029
commit
bc082ba56c
|
@ -515,6 +515,7 @@ where
|
||||||
let instance = &*(ptr as *mut T::Instance);
|
let instance = &*(ptr as *mut T::Instance);
|
||||||
let imp = instance.get_impl();
|
let imp = instance.get_impl();
|
||||||
let wrap: VideoDecoder = from_glib_borrow(ptr);
|
let wrap: VideoDecoder = from_glib_borrow(ptr);
|
||||||
|
gst_video_sys::gst_video_codec_state_ref(state);
|
||||||
let mut wrap_state = VideoCodecState::<Readable>::new(state);
|
let mut wrap_state = VideoCodecState::<Readable>::new(state);
|
||||||
|
|
||||||
gst_panic_to_error!(&wrap, &instance.panicked(), false, {
|
gst_panic_to_error!(&wrap, &instance.panicked(), false, {
|
||||||
|
|
|
@ -469,6 +469,7 @@ where
|
||||||
let instance = &*(ptr as *mut T::Instance);
|
let instance = &*(ptr as *mut T::Instance);
|
||||||
let imp = instance.get_impl();
|
let imp = instance.get_impl();
|
||||||
let wrap: VideoEncoder = from_glib_borrow(ptr);
|
let wrap: VideoEncoder = from_glib_borrow(ptr);
|
||||||
|
gst_video_sys::gst_video_codec_state_ref(state);
|
||||||
let mut wrap_state = VideoCodecState::<Readable>::new(state);
|
let mut wrap_state = VideoCodecState::<Readable>::new(state);
|
||||||
|
|
||||||
gst_panic_to_error!(&wrap, &instance.panicked(), false, {
|
gst_panic_to_error!(&wrap, &instance.panicked(), false, {
|
||||||
|
|
Loading…
Reference in a new issue