mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
ext/annodex/gstcmmlenc.c: Fix another memleak.
Original commit message from CVS: 2006-02-25 Julien MOUTTE <julien@moutte.net> * ext/annodex/gstcmmlenc.c: (gst_cmml_enc_push_clip): Fix another memleak.
This commit is contained in:
parent
675a5afed0
commit
c868d92d1a
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2006-02-25 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
|
* ext/annodex/gstcmmlenc.c: (gst_cmml_enc_push_clip): Fix another
|
||||||
|
memleak.
|
||||||
|
|
||||||
2006-02-25 Alessandro Decina <alessandro@nnva.org>
|
2006-02-25 Alessandro Decina <alessandro@nnva.org>
|
||||||
|
|
||||||
* ext/annodex/Makefile.am:
|
* ext/annodex/Makefile.am:
|
||||||
|
|
|
@ -539,8 +539,10 @@ gst_cmml_enc_push_clip (GstCmmlEnc * enc, GstCmmlTagClip * clip,
|
||||||
/* set the granulepos */
|
/* set the granulepos */
|
||||||
granulepos = gst_cmml_clock_time_to_granule (prev_clip_time, clip->start_time,
|
granulepos = gst_cmml_clock_time_to_granule (prev_clip_time, clip->start_time,
|
||||||
enc->granulerate_n, enc->granulerate_d, enc->granuleshift);
|
enc->granulerate_n, enc->granulerate_d, enc->granuleshift);
|
||||||
if (granulepos == -1)
|
if (granulepos == -1) {
|
||||||
|
gst_buffer_unref (buffer);
|
||||||
goto granule_overflow;
|
goto granule_overflow;
|
||||||
|
}
|
||||||
|
|
||||||
GST_BUFFER_OFFSET_END (buffer) = granulepos;
|
GST_BUFFER_OFFSET_END (buffer) = granulepos;
|
||||||
GST_BUFFER_TIMESTAMP (buffer) = clip->start_time;
|
GST_BUFFER_TIMESTAMP (buffer) = clip->start_time;
|
||||||
|
|
Loading…
Reference in a new issue