Commit c868d92d authored by Julien Moutte Moutte's avatar Julien Moutte Moutte
Browse files

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.
parent 675a5afe
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, ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment