mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
ext/ffmpeg/gstffmpegdec.c (gst_ffmpegdec_change_state): First close the ffmpeg context than try to free last_buffer. ...
Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c (gst_ffmpegdec_change_state): First close the ffmpeg context than try to free last_buffer. fix #306893
This commit is contained in:
parent
9e7000b54a
commit
660cc7db6f
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-06-08 Luca Ognibene <luogni@tin.it>
|
||||
|
||||
* ext/ffmpeg/gstffmpegdec.c (gst_ffmpegdec_change_state):
|
||||
First close the ffmpeg context than try to free last_buffer.
|
||||
fix #306893
|
||||
|
||||
2005-06-03 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_open),
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 67b7e6c0db99415e0440d0c576495641b53e976a
|
||||
Subproject commit 495d6e30b3e513aebbc98467707c609c49ea654d
|
|
@ -1002,10 +1002,10 @@ gst_ffmpegdec_change_state (GstElement * element)
|
|||
|
||||
switch (transition) {
|
||||
case GST_STATE_PAUSED_TO_READY:
|
||||
gst_ffmpegdec_close (ffmpegdec);
|
||||
if (ffmpegdec->last_buffer != NULL) {
|
||||
gst_buffer_unref (ffmpegdec->last_buffer);
|
||||
}
|
||||
gst_ffmpegdec_close (ffmpegdec);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue