[gstreamer-bugs] [Bug 500825] New: Race condition in flv demux

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sat Dec 1 01:06:41 PST 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=500825

  GStreamer | gst-plugins-bad | Ver: HEAD CVS
           Summary: Race condition in flv demux
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: kwangyul.seo at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


I compiled flv demux against gstreamer-0.10.15 and gst-plugins-base-0.10.15. I
see a werid problem when flv demux works in pull mode. By the way, it works
well in push mode.

gst-launch-0.10.exe playbin uri="file:///c:/w.flv"


In gst_flv_demux_loop() function, demux->segment->rate is negative value for
some reasons I don't know. I tried to print the value, but the g_print shows
that the value is 1.0 in else clause of demux->segment->rate >= 0. So the
playback never starts and ends up in reverse playback's EOS condition.

    /* check EOS condition */
    if (demux->segment->last_stop <= demux->segment->start) {
      /* <<<ALWAYS STOPS HERE>>> */
      ret = GST_FLOW_UNEXPECTED;
      goto pause;
    }

More interestingly, when I convert demux->segment->rate to gint, it works
correctly and playback the flash video.

if ((gint) demux->segment->rate >= 0) {
...
}
else {
...
}

Is this a race condition?


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=500825.




More information about the Gstreamer-bugs mailing list