[Bug 763968] qtdemux: Add check condition for fail case in get_duration function
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Mar 21 08:46:17 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=763968
--- Comment #3 from Jimmy Ohn <yongjin.ohn at lge.com> ---
(In reply to Sebastian Dröge (slomo) from comment #2)
> Review of attachment 324407 [details] [review]:
>
> ::: gst/isomp4/qtdemux.c
> @@ +834,3 @@
> +
> + gst_qtdemux_get_duration (qtdemux, &duration);
> + if (duration > 0) {
>
> Why do you remove the check for the return value here?
>
> @@ +4422,3 @@
>
> + if (G_UNLIKELY (QTSEGMENT_IS_EMPTY (&stream->
> + segments[stream->segment_index]))) {
>
> No useless indentation changes please :)
>
> @@ +5187,3 @@
> /* If we're doing a keyframe-only trickmode, only push keyframes on video
> streams */
> + if (G_UNLIKELY (qtdemux->segment.
> + flags & GST_SEGMENT_FLAG_TRICKMODE_KEY_UNITS)) {
>
> No useless indentation changes please :)
Actually, I use the gst-indent tools about the qtdemux.c file. But If you don't
agree it, I'll modify it.:)
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list