After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 500825 - [flvdemux] race condition?
[flvdemux] race condition?
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Windows
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-01 09:06 UTC by Kwang Yul Seo
Modified: 2008-01-13 14:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kwang Yul Seo 2007-12-01 09:06:40 UTC
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?
Comment 1 Tim-Philipp Müller 2007-12-13 11:01:39 UTC
Could you tell us how to reproduce the problem exactly?  Could you make the sample file you're using available?
Comment 2 Tim-Philipp Müller 2008-01-13 14:54:28 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!