qtmux: remove not needed condition

gst_buffer_replace can handle NULL inputs by itself
This commit is contained in:
Thiago Santos 2015-02-18 10:10:53 -03:00
parent a12e41c106
commit 84b7cf6795
2 changed files with 3 additions and 4 deletions

View file

@ -385,8 +385,7 @@ gst_qt_mux_pad_reset (GstQTPad * qtpad)
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);

View file

@ -2969,8 +2969,8 @@ qtdemux_parse_moof (GstQTDemux * qtdemux, const guint8 * buffer, guint length,
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;
}