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 558261 - [mp3parse] could fix quickly the src caps
[mp3parse] could fix quickly the src caps
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
0.10.9
Other All
: Normal minor
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-10-28 15:57 UTC by Benjamin Gaignard
Modified: 2010-12-27 00:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18


Attachments
patch to quickly fix src caps (2.26 KB, patch)
2008-10-28 15:58 UTC, Benjamin Gaignard
needs-work Details | Review
mp3parse patch (3.52 KB, patch)
2008-11-24 13:11 UTC, Benjamin Gaignard
needs-work Details | Review

Description Benjamin Gaignard 2008-10-28 15:57:17 UTC
if sink caps inform mp3parse about stream capabilities we could perform more quickly the resolution src caps. 
We don't need wait for the first buffers to fix src caps so decodebin could select  a decoder more quickly.

Other information:
Comment 1 Benjamin Gaignard 2008-10-28 15:58:55 UTC
Created attachment 121520 [details] [review]
patch to quickly fix src caps
Comment 2 Sebastian Dröge (slomo) 2008-11-24 09:48:16 UTC
Hi,
thanks for the patch. This makes sense in theory but you should better implement this in the setcaps function of the pad.
Comment 3 Benjamin Gaignard 2008-11-24 13:11:47 UTC
Hi,
I have done this in set_link_function to avoid this case in decodebin:
decodebin gstdecodebin.c:1002:close_pad_link:<mpegaudioparse0:src> many possible types
decodebin gstdecodebin.c:1007:close_pad_link:<mpegaudioparse0:src> setting up a delayed link

By setting src caps only at sink set_caps the selection of an audio decoder by decodebin is perform later on the first buffer. The caps are already knows when the link pad function is call so the decodebin could select the next element in the graph sooner. this solve some issues with when queue-size property of playbin it set at very low values.
  
I will provide a patch for set caps function and link function, I hope it will be more acceptable. 
Comment 4 Benjamin Gaignard 2008-11-24 13:11:56 UTC
Created attachment 123320 [details] [review]
mp3parse patch
Comment 5 Wim Taymans 2008-11-24 14:54:08 UTC
It is not a good idea to do this because all of those redundant properties in the caps can change for each buffer.
Comment 6 Benjamin Gaignard 2008-11-24 17:16:41 UTC
the case of changing properties in the caps for each buffer is still manage gst_mp3parse_chain function, this patch doesn't change this. 
it's only set sooner the source pad caps. 
Comment 7 Benjamin Gaignard 2009-01-23 11:04:27 UTC
Is the patch acceptable ? or should I rework it ?
Comment 8 Wim Taymans 2009-01-23 11:29:03 UTC
I'm not sure, we don't usually want to do negotiation in the link function.
Comment 9 Tim-Philipp Müller 2010-12-27 00:25:11 UTC
No action for ages, closing this as INCOMPLETE or WONTFIX.

Issues with the patch:

 - negotiation in the link function

 - GST_PAD_LINK_OK is not a gboolean

 - mp3parse in -ugly is being replaced with
   mpegaudioparse from -bad/gst/audioparsers/