mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
Some plugins are adjusted to the new pad template mechanisms.
Original commit message from CVS: Some plugins are adjusted to the new pad template mechanisms.
This commit is contained in:
parent
1ba6c1b526
commit
f8386fbaa0
2 changed files with 19 additions and 2 deletions
19
gst/gstpad.c
19
gst/gstpad.c
|
@ -595,6 +595,14 @@ gst_pad_connect (GstPad *srcpad,
|
|||
}
|
||||
g_return_if_fail((srcpad->direction == GST_PAD_SRC) &&
|
||||
(sinkpad->direction == GST_PAD_SINK));
|
||||
|
||||
/* chack pad compatibility */
|
||||
if (srcpad->caps && sinkpad->caps) {
|
||||
if (!gst_caps_check_compatibility (srcpad->caps, sinkpad->caps))
|
||||
g_warning ("gstpad: connecting incompatible pads");
|
||||
else
|
||||
g_print ("gstpad: connecting compatible pads\n");
|
||||
}
|
||||
|
||||
/* first set peers */
|
||||
srcpad->peer = sinkpad;
|
||||
|
@ -904,7 +912,16 @@ gst_padtemplate_create (gchar *name_template,
|
|||
GstPadDirection direction, GstPadPresence presence,
|
||||
GstCaps *caps, ...)
|
||||
{
|
||||
return NULL;
|
||||
GstPadTemplate *new;
|
||||
|
||||
new = g_new0 (GstPadTemplate, 1);
|
||||
|
||||
new->name_template = name_template;
|
||||
new->direction = direction;
|
||||
new->presence = presence;
|
||||
new->caps = caps;
|
||||
|
||||
return new;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ GList *_gst_libraries;
|
|||
gint _gst_libraries_seqno;
|
||||
|
||||
/* whether or not to spew library load issues */
|
||||
gboolean _gst_plugin_spew = FALSE;
|
||||
gboolean _gst_plugin_spew = TRUE;
|
||||
|
||||
|
||||
void _gst_plugin_initialize() {
|
||||
|
|
Loading…
Reference in a new issue