Commit 8a09bf26 authored by Torrie Fischer's avatar Torrie Fischer
Browse files

Remove dead gsthelper code

parent 5f357a4b
......@@ -29,36 +29,6 @@ namespace Phonon
namespace Gstreamer
{
/**
* Probes a gstElement for a list of settable string-property values
*
* @return a QStringList containing a list of allwed string values for the given
* element
*/
QList<QByteArray> GstHelper::extractProperties(GstElement *elem, const QByteArray &value)
{
Q_ASSERT(elem);
QList<QByteArray> list;
if (GST_IS_PROPERTY_PROBE(elem)) {
GstPropertyProbe *probe = GST_PROPERTY_PROBE(elem);
const GParamSpec *devspec = 0;
GValueArray *array = NULL;
if ((devspec = gst_property_probe_get_property (probe, value))) {
if ((array = gst_property_probe_probe_and_get_values (probe, devspec))) {
for (unsigned int device = 0; device < array->n_values; device++) {
GValue *deviceId = g_value_array_get_nth (array, device);
list.append(g_value_get_string(deviceId));
}
}
if (array)
g_value_array_free (array);
}
}
return list;
}
/**
* Sets the string value of a GstElement's property
*
......
......@@ -35,7 +35,6 @@ class MediaObject;
class GstHelper
{
public:
static QList<QByteArray> extractProperties(GstElement *elem, const QByteArray &value);
static bool setProperty(GstElement *elem, const char *propertyName, const QByteArray &propertyValue);
static QByteArray property(GstElement *elem, const char *propertyName);
static QByteArray name(GstObject *elem);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment