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 622498 - [avidemux] Doesn't reset all state when going back to READY
[avidemux] Doesn't reset all state when going back to READY
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
unspecified
Other Linux
: Normal critical
: 0.10.24
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 622499 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-06-23 15:13 UTC by mgr
Modified: 2010-06-23 19:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH 1] [gstavidemux] reset the have_index flag at transition PAUSED_TO_READY (1.08 KB, patch)
2010-06-23 15:13 UTC, mgr
committed Details | Review

Description mgr 2010-06-23 15:13:23 UTC
Created attachment 164403 [details] [review]
[PATCH 1] [gstavidemux] reset the have_index flag at transition PAUSED_TO_READY

I have been debugging a chain of filesource->avidemux->avidecoder->v4l2sink and stepped upon some strange issues. One of them is, that if we reuse the avidemuxer and toggle transitions PAUSED_TO_READY and READY_TO_PAUSED the precalculated duration from the avi header gets overwritten with a recalculated value. Therefore the attached patch solves this with turning off the avi->have_index flag, so the metadata gets reread from the gst_avi_demux_stream_header_(pull/push) function.
Comment 1 Fabio Durán Verdugo 2010-06-23 15:24:32 UTC
is the same patch???
https://bugzilla.gnome.org/show_bug.cgi?id=622499
Comment 2 Tim-Philipp Müller 2010-06-23 15:26:08 UTC
*** Bug 622499 has been marked as a duplicate of this bug. ***
Comment 3 Sebastian Dröge (slomo) 2010-06-23 19:41:52 UTC
commit b26785d9f92587fb99d2418c6b8e1c7ba2c8d849
Author: Michael Grzeschik <m.grzeschik@pengutronix.de>
Date:   Wed Jun 23 12:15:13 2010 +0200

    reset the have_index flag at transition PAUSED_TO_READY
    
    If we restart the Stream in the case of doing a transition from
    PAUSED_TO_READY and back with READY_TO_PAUSED aso. the duration of the vide
    will get calculated even if we have a avi header with that information.
    
    Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>