~ubuntu-branches/ubuntu/feisty/gst-plugins-good0.10/feisty-security

« back to all changes in this revision

Viewing changes to gst/autodetect/gstautovideosink.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-08-15 02:58:26 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060815025826-h1sa4q0uxwqgzwki
Tags: 0.10.4-0ubuntu1
* Sync with Debian (pkg-gstreamer SVN, rev 470):
  + debian/rules,
    debian/control.in:
    - Add a -dbg package again

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
{
156
156
  GstElement *choice = NULL;
157
157
  GList *list, *walk;
 
158
  gchar *child_name = g_strdup_printf ("%s-actual-sink",
 
159
      GST_OBJECT_NAME (sink));
158
160
 
159
161
  list = gst_registry_feature_filter (gst_registry_get_default (),
160
162
      (GstPluginFeatureFilter) gst_auto_video_sink_factory_filter, FALSE, sink);
165
167
    GstElement *el;
166
168
 
167
169
    GST_DEBUG_OBJECT (sink, "Trying %s", GST_PLUGIN_FEATURE (f)->name);
168
 
    if ((el = gst_element_factory_create (f, "actual-sink"))) {
 
170
    if ((el = gst_element_factory_create (f, child_name))) {
169
171
      GstStateChangeReturn ret;
170
172
 
171
173
      GST_DEBUG_OBJECT (sink, "Changing state to READY");
188
190
  }
189
191
 
190
192
done:
 
193
  g_free (child_name);
191
194
  gst_plugin_feature_list_free (list);
192
195
 
193
196
  return choice;