~ubuntu-branches/ubuntu/trusty/gstreamer1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to gst/gstelementfactory.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2012-06-08 09:38:04 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120608093804-q9gzihfevul7nqtc
Tags: 0.11.92-1
* debian/control.in:
  + Update automake, autoconf and libtool build dependencies.
* New upstream release, "High Hopes":
  + debian/libgstreamer.symbols:
    - Update symbols file.
* debian/gst-codec-info.c:
  + Updated for API changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
510
510
}
511
511
 
512
512
/**
 
513
 * gst_element_factory_get_metadata_keys:
 
514
 * @factory,: a #GstElementFactory
 
515
 *
 
516
 * Get the available keys for the metadata on @factory.
 
517
 *
 
518
 * Returns: a %NULL-terminated array of key strings, or %NULL when
 
519
 * there is no metadata. Free with g_strfreev() when no longer needd.
 
520
 */
 
521
gchar **
 
522
gst_element_factory_get_metadata_keys (GstElementFactory * factory)
 
523
{
 
524
  GstStructure *metadata;
 
525
  gchar **arr;
 
526
  gint i, num;
 
527
 
 
528
  g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), NULL);
 
529
 
 
530
  metadata = (GstStructure *) factory->metadata;
 
531
  if (metadata == NULL)
 
532
    return NULL;
 
533
 
 
534
  num = gst_structure_n_fields (metadata);
 
535
  if (num == 0)
 
536
    return NULL;
 
537
 
 
538
  arr = g_new (gchar *, num + 1);
 
539
  for (i = 0; i < num; ++i) {
 
540
    arr[i] = g_strdup (gst_structure_nth_field_name (metadata, i));
 
541
  }
 
542
  arr[i] = NULL;
 
543
  return arr;
 
544
}
 
545
 
 
546
/**
513
547
 * gst_element_factory_get_num_pad_templates:
514
548
 * @factory: a #GstElementFactory
515
549
 *