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:
Julien Moutte 2006-02-25 19:36:24 +00:00
parent 675a5afed0
commit c868d92d1a
2 changed files with 8 additions and 1 deletions

View file

@ -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:

View file

@ -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;