[Bug 696911] GstSegment adds lot of warning noise

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Mar 30 08:25:27 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=696911
  GStreamer | gstreamer (core) | git

--- Comment #1 from Matej Knopp <matej.knopp at gmail.com> 2013-03-30 15:25:22 UTC ---
Example from

gst_base_sink_get_sync_times

...
  /* set last stop position */
  if (G_LIKELY (stop != GST_CLOCK_TIME_NONE && cstop != GST_CLOCK_TIME_NONE))
    segment->position = cstop;
  else
    segment->position = cstart;

do_times:
  rstart = gst_segment_to_running_time (segment, format, cstart);
  rstop = gst_segment_to_running_time (segment, format, cstop);
...

it is valid that cstop = GST_CLOCK_TIME_NONE (hence the check) and basesink
still calls gst_segment_to_running_time(segment, format, cstop), because it's
harmless and just returns -1. But now it also prints a warning.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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