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