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 347384 - [ghostpad] padtemplates shouldn't be set automatically
[ghostpad] padtemplates shouldn't be set automatically
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal blocker
: 0.10.9
Assigned To: Edward Hervey
GStreamer Maintainers
Depends on:
Blocks: 347385
 
 
Reported: 2006-07-13 09:54 UTC by Edward Hervey
Modified: 2006-07-13 10:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (4.09 KB, patch)
2006-07-13 10:02 UTC, Edward Hervey
none Details | Review
updated version without new API (2.01 KB, patch)
2006-07-13 10:20 UTC, Edward Hervey
committed Details | Review

Description Edward Hervey 2006-07-13 09:54:52 UTC
GhostPads should not set padtemplates automatically.

It currently takes the padtemplate of the target pad when we set the target.

Several issues:
_ the availability and name of the padtemplate do not reflect the ones of the ghostpad
_ if the target is a ghostpad itself and we change it's target, the template will not be propagated to the initial ghostpad.

Pad templates on ghostpads should be set explicitely.
Comment 1 Edward Hervey 2006-07-13 10:02:00 UTC
Created attachment 68852 [details] [review]
Proposed patch

This patch:
_ doesn't set padtemplates automatically when creating a new ghostpad with target, and when changing the target of a ghostpad
_ adds a new function gst_ghost_pad_new_with_template, where it is possible to create a ghostpad with a padtemplate
Comment 2 Jan Schmidt 2006-07-13 10:09:48 UTC
You're kidding, right? 

Adding new API in a pre-release? Is this a regression? What are the consequences of punting this?
Comment 3 Edward Hervey 2006-07-13 10:11:15 UTC
Fine, I won't add the new convenience function.

But it stays the same, ghostpads shouldn't take the pad templates of their targets.
Comment 4 Edward Hervey 2006-07-13 10:20:15 UTC
Created attachment 68853 [details] [review]
updated version without new API

I removed the new convenience function. This doesn't break API.
Comment 5 Wim Taymans 2006-07-13 10:39:09 UTC
This last patch looks ok!
Comment 6 Edward Hervey 2006-07-13 10:48:02 UTC
2006-07-13  Edward Hervey  <edward@fluendo.com>

	* gst/gstghostpad.c: (gst_proxy_pad_set_target_unlocked):
	GhostPad no longer implicitely use the padtemplates of the targets.
	Fixes #347384