vlc | branch: master | Steve Lhomme <[email protected]> | Fri Jan 10 14:30:12 2020 +0100| [784a0bd9f1403f407a309db4fc8b3be25c275d8c] | committer: Steve Lhomme
mmal: codec: free the old format when a new one is detected In case a new format comes before we had time to handle the previous one. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=784a0bd9f1403f407a309db4fc8b3be25c275d8c --- modules/hw/mmal/codec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c index c31ba0cf35..5294c61e2f 100644 --- a/modules/hw/mmal/codec.c +++ b/modules/hw/mmal/codec.c @@ -669,6 +669,8 @@ static void output_port_cb(MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer) if (sys->opaque) format->encoding = MMAL_ENCODING_OPAQUE; + if (sys->output_format) + mmal_format_free(sys->output_format); sys->output_format = format; mmal_buffer_header_release(buffer); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
