gst_buffer_replace can handle NULL inputs by itself
qtpad->buf_head = 0;
qtpad->buf_tail = 0;
- if (qtpad->last_buf)
- gst_buffer_replace (&qtpad->last_buf, NULL);
+ gst_buffer_replace (&qtpad->last_buf, NULL);
if (qtpad->tags) {
gst_tag_list_unref (qtpad->tags);
GST_TIME_ARGS (decode_time_ts));
/* Discard the fragment buffer timestamp info to avoid using it.
- * Rely on tfdt instead as it is more accurate than the timetamp
- * that is fetches from a manifest/playlist and is usually
+ * Rely on tfdt instead as it is more accurate than the timestamp
+ * that is fetched from a manifest/playlist and is usually
* less accurate. */
qtdemux->fragment_start = -1;
}