summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2010-01-31 15:53:27 +0200
committerStefan Kost <ensonic@users.sf.net>2010-01-31 22:25:51 +0200
commit233f7ef176863ff85680d3a151d1bab2c35162e1 (patch)
tree166bce3d2b277e24ff5dbe836c490396f7489626
parent71a11132ff3594f3829199dbdd0a5a00a4f7593d (diff)
signalprocessor: new is a c++ keyword, better logging
Use pad instead of new for the pad var. Also use pad as object in to debug logging.
-rw-r--r--gst-libs/gst/signalprocessor/gstsignalprocessor.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/gst-libs/gst/signalprocessor/gstsignalprocessor.c b/gst-libs/gst/signalprocessor/gstsignalprocessor.c
index 80b366cf9..5f3e9c7c6 100644
--- a/gst-libs/gst/signalprocessor/gstsignalprocessor.c
+++ b/gst-libs/gst/signalprocessor/gstsignalprocessor.c
@@ -213,38 +213,38 @@ static void
213gst_signal_processor_add_pad_from_template (GstSignalProcessor * self, 213gst_signal_processor_add_pad_from_template (GstSignalProcessor * self,
214 GstPadTemplate * templ) 214 GstPadTemplate * templ)
215{ 215{
216 GstPad *new; 216 GstPad *pad;
217 217
218 new = g_object_new (GST_TYPE_SIGNAL_PROCESSOR_PAD, 218 pad = g_object_new (GST_TYPE_SIGNAL_PROCESSOR_PAD,
219 "name", GST_OBJECT_NAME (templ), "direction", templ->direction, 219 "name", GST_OBJECT_NAME (templ), "direction", templ->direction,
220 "template", templ, NULL); 220 "template", templ, NULL);
221 GST_SIGNAL_PROCESSOR_PAD (new)->index = 221 GST_SIGNAL_PROCESSOR_PAD (pad)->index =
222 GST_SIGNAL_PROCESSOR_PAD_TEMPLATE (templ)->index; 222 GST_SIGNAL_PROCESSOR_PAD_TEMPLATE (templ)->index;
223 GST_SIGNAL_PROCESSOR_PAD (new)->channels = 223 GST_SIGNAL_PROCESSOR_PAD (pad)->channels =
224 GST_SIGNAL_PROCESSOR_PAD_TEMPLATE (templ)->channels; 224 GST_SIGNAL_PROCESSOR_PAD_TEMPLATE (templ)->channels;
225 225
226 gst_pad_set_setcaps_function (new, 226 gst_pad_set_setcaps_function (pad,
227 GST_DEBUG_FUNCPTR (gst_signal_processor_setcaps)); 227 GST_DEBUG_FUNCPTR (gst_signal_processor_setcaps));
228 228
229 if (templ->direction == GST_PAD_SINK) { 229 if (templ->direction == GST_PAD_SINK) {
230 GST_DEBUG ("added new sink pad"); 230 GST_DEBUG_OBJECT (pad, "added new sink pad");
231 231
232 gst_pad_set_event_function (new, 232 gst_pad_set_event_function (pad,
233 GST_DEBUG_FUNCPTR (gst_signal_processor_event)); 233 GST_DEBUG_FUNCPTR (gst_signal_processor_event));
234 gst_pad_set_chain_function (new, 234 gst_pad_set_chain_function (pad,
235 GST_DEBUG_FUNCPTR (gst_signal_processor_chain)); 235 GST_DEBUG_FUNCPTR (gst_signal_processor_chain));
236 gst_pad_set_activatepush_function (new, 236 gst_pad_set_activatepush_function (pad,
237 GST_DEBUG_FUNCPTR (gst_signal_processor_sink_activate_push)); 237 GST_DEBUG_FUNCPTR (gst_signal_processor_sink_activate_push));
238 } else { 238 } else {
239 GST_DEBUG ("added new src pad"); 239 GST_DEBUG_OBJECT (pad, "added new src pad");
240 240
241 gst_pad_set_getrange_function (new, 241 gst_pad_set_getrange_function (pad,
242 GST_DEBUG_FUNCPTR (gst_signal_processor_getrange)); 242 GST_DEBUG_FUNCPTR (gst_signal_processor_getrange));
243 gst_pad_set_activatepull_function (new, 243 gst_pad_set_activatepull_function (pad,
244 GST_DEBUG_FUNCPTR (gst_signal_processor_src_activate_pull)); 244 GST_DEBUG_FUNCPTR (gst_signal_processor_src_activate_pull));
245 } 245 }
246 246
247 gst_element_add_pad (GST_ELEMENT (self), new); 247 gst_element_add_pad (GST_ELEMENT (self), pad);
248} 248}
249 249
250static void 250static void