From: Thiago Santos Date: Wed, 18 Feb 2015 13:10:53 +0000 (-0300) Subject: qtmux: remove not needed condition X-Git-Tag: 1.6.0~597 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84b7cf6795c8d2779ebf5acb063bfd8cc0abccd0;p=platform%2Fupstream%2Fgst-plugins-good.git qtmux: remove not needed condition gst_buffer_replace can handle NULL inputs by itself --- diff --git a/gst/isomp4/gstqtmux.c b/gst/isomp4/gstqtmux.c index e9e0928..e61ec6c 100644 --- a/gst/isomp4/gstqtmux.c +++ b/gst/isomp4/gstqtmux.c @@ -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); diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 84b56ee..b766a38 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -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; }