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 663174 - oggmux: set collectpads2 not to wait on sparse streams
oggmux: set collectpads2 not to wait on sparse streams
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other All
: Normal normal
: 0.10.36
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-11-01 15:22 UTC by Vincent Penquerc'h
Modified: 2011-11-25 16:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
oggmux: set collectpads2 not to wait on sparse streams (1.27 KB, patch)
2011-11-01 15:22 UTC, Vincent Penquerc'h
needs-work Details | Review
oggmux: set collectpads2 not to wait on sparse streams (1.80 KB, patch)
2011-11-01 16:10 UTC, Vincent Penquerc'h
committed Details | Review

Description Vincent Penquerc'h 2011-11-01 15:22:33 UTC
oggmux: set collectpads2 not to wait on sparse streams
Comment 1 Vincent Penquerc'h 2011-11-01 15:22:35 UTC
Created attachment 200411 [details] [review]
oggmux: set collectpads2 not to wait on sparse streams
Comment 2 Vincent Penquerc'h 2011-11-01 15:33:44 UTC
Comment on attachment 200411 [details] [review]
oggmux: set collectpads2 not to wait on sparse streams

Argh. This causes trouble with headers written later than they should.
Comment 3 Vincent Penquerc'h 2011-11-01 16:10:37 UTC
Created attachment 200423 [details] [review]
oggmux: set collectpads2 not to wait on sparse streams
Comment 4 Sebastian Dröge (slomo) 2011-11-24 09:34:57 UTC
Review of attachment 200423 [details] [review]:

::: ext/ogg/gstoggmux.c
@@ +467,3 @@
       oggpad = (GstOggPadData *)
           gst_collect_pads2_add_pad_full (ogg_mux->collect, newpad,
+          sizeof (GstOggPadData), gst_ogg_mux_ogg_pad_destroy_notify, FALSE);

Are you sure this shouldn't be left as TRUE

@@ +993,3 @@
+                GST_DEBUG_OBJECT (pad, "Pad is sparse, marking as such");
+                gst_collect_pads2_set_waiting (ogg_mux->collect,
+                    (GstCollectData2 *) pad, FALSE);

...and only changed here for sparse streams?
Comment 5 Vincent Penquerc'h 2011-11-24 15:05:10 UTC
That first boolean is "lock the state", which means it cannot be set to FALSE to sparse streams later if "lock the state" is TRUE.
Comment 6 Sebastian Dröge (slomo) 2011-11-25 09:15:01 UTC
Comment on attachment 200423 [details] [review]
oggmux: set collectpads2 not to wait on sparse streams

Oops, right. Please push this :)
Comment 7 Vincent Penquerc'h 2011-11-25 16:19:04 UTC
commit c6b9145630373f82cb82040bf54c0189bab416db
Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Date:   Tue Nov 1 15:21:54 2011 +0000

    oggmux: set collectpads2 not to wait on sparse streams
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663174
Comment 8 Vincent Penquerc'h 2011-11-25 16:24:42 UTC
commit c6b9145630373f82cb82040bf54c0189bab416db
Author: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Date:   Tue Nov 1 15:21:54 2011 +0000

    oggmux: set collectpads2 not to wait on sparse streams
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663174