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 533287 - Mapping of mime types to gst names in multipartdemux
Mapping of mime types to gst names in multipartdemux
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: 0.10.9
Assigned To: Wim Taymans
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-05-15 13:47 UTC by Patrick Radizi
Modified: 2009-03-05 19:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
cvs diff showing the changes needed for multipartdemux.c (2.62 KB, patch)
2008-05-15 13:56 UTC, Patrick Radizi
committed Details | Review
cvs diff showing the changes needed for multipartdemux.h (1.12 KB, patch)
2008-05-15 13:56 UTC, Patrick Radizi
committed Details | Review
proxy patch for gst-plugins-base (7.73 KB, patch)
2009-03-05 18:09 UTC, Patrick Radizi
rejected Details | Review
proxy patch for gst-plugins-good (6.28 KB, patch)
2009-03-05 18:10 UTC, Patrick Radizi
rejected Details | Review

Description Patrick Radizi 2008-05-15 13:47:20 UTC
The multipartdemuxer uses the mime type as gst name on the src pad. This is not always desirable, sometimes another name is required. I have made it possible to make a mapping between a mime type and a different gst name. I have added one such  
mapping : mime type audio/basic -> gst name audio/x-mulaw.

It can be noted that this functionality already exists in the multipartmuxer, i.e. it can map a gst name do a different mime type.


The functionality is implemented in 
gst/multipart/multipartdemux.c
gst/multipart/multipartdemux.h

CVS diffs are included in the attachements
Comment 1 Patrick Radizi 2008-05-15 13:56:19 UTC
Created attachment 110953 [details] [review]
cvs diff showing the changes needed for multipartdemux.c
Comment 2 Patrick Radizi 2008-05-15 13:56:52 UTC
Created attachment 110954 [details] [review]
cvs diff showing the changes needed for multipartdemux.h
Comment 3 Wim Taymans 2008-05-21 09:38:54 UTC
I modified it a little to handle the conversion a little earlier. Please test again.

        Patch by: Patrick Radizi <patrick dot radizi at axis dot com>

        * gst/multipart/multipartdemux.c: (gst_multipart_demux_class_init),
        (gst_multipart_demux_get_gstname),
        (gst_multipart_find_pad_by_mime), (gst_multipart_demux_chain):
        * gst/multipart/multipartdemux.h:
        Don't blindly copy the mime-type as the caps name because they not
        always map directly. Instead use a hashtable with common mappings.
        Fixes #533287.
Comment 4 Patrick Radizi 2008-05-21 13:02:22 UTC
I tested the latest change and it works fine.
Comment 5 Patrick Radizi 2009-03-05 18:09:59 UTC
Created attachment 130143 [details] [review]
proxy patch for gst-plugins-base
Comment 6 Patrick Radizi 2009-03-05 18:10:41 UTC
Created attachment 130144 [details] [review]
proxy patch for gst-plugins-good
Comment 7 Patrick Radizi 2009-03-05 18:19:23 UTC
Ignore comments/attachements  #5,#6. I added these in the wrong report, they belong to #573173 :-(

Is there no way to undo/remove a comment ?
Comment 8 Wim Taymans 2009-03-05 19:41:58 UTC
I rejected them.