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 649060 - flvmux: overwrites metadata tags with duration in streamable=false mode
flvmux: overwrites metadata tags with duration in streamable=false mode
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.29
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-05-01 04:23 UTC by Tom Janiszewski
Modified: 2011-05-01 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch to check for streamable prior to duration setting (782 bytes, patch)
2011-05-01 04:23 UTC, Tom Janiszewski
none Details | Review

Description Tom Janiszewski 2011-05-01 04:23:29 UTC
Created attachment 186957 [details] [review]
Proposed patch to check for streamable prior to duration setting

When trying to use tags (title, artist for example) with flvmux in streamable mode, the tag is overwritten by duration data because it writes into an assumed part of the buffer which isn't valid for streamable=true.

Attached patch adds check for streamable before writing duration into buffer.

On a side-note is there a reason flvmux restricts tags to artist/title only? I have a quick patch that removes this restriction I can submit as a feature req/patch if that makes sense.

-Tom
Comment 1 Tim-Philipp Müller 2011-05-01 13:22:00 UTC
Thanks for the patch!

 commit b9c2f8b38f2e35185a0178d2e223e9f75ca6c7a5
 Author: Tom Janiszewski <tom.janiszewski@alcatel-lucent.com>
 Date:   Sun May 1 00:04:03 2011 -0400

    flvmux: don't overwrite metadata tag with duration in streaming mode
    
    A duration tag gets inserted only for streamable=false, so only
    update/write the duration later if we actually inserted that tag,
    otherwise we write garbage into other tags.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=649060


> On a side-note is there a reason flvmux restricts tags to artist/title only? I
> have a quick patch that removes this restriction I can submit as a feature
> req/patch if that makes sense.

No particular reason probably. I guess mappings for additional tags would could be added, I don't think it makes sense to just randomly write out the GStreamer tag names as tags though (ie. without mapping). Please file a new bug for this if you have additional mappings.