~ubuntu-branches/ubuntu/saucy/phonon-backend-gstreamer/saucy

« back to all changes in this revision

Viewing changes to gstreamer/gsthelper.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-02-16 21:50:11 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120216215011-wv2qn430er68r7k0
Tags: 4:4.7.0really4.6.0-0ubuntu1
* New upstream release.
* Bump build-dependency on phonon to 4:4.7.0really4.6.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    Q_ASSERT(propertyName && strlen(propertyName));
72
72
 
73
73
    if (GST_IS_PROPERTY_PROBE(elem) && gst_property_probe_get_property( GST_PROPERTY_PROBE( elem), propertyName ) ) {
74
 
        g_object_set(G_OBJECT(elem), propertyName, propertyValue.constData(), (const char*)NULL);
 
74
        g_object_set(G_OBJECT(elem), propertyName, propertyValue.constData(), NULL);
75
75
        return true;
76
76
    }
77
77
    return false;
88
88
 
89
89
    if (GST_IS_PROPERTY_PROBE(elem) && gst_property_probe_get_property( GST_PROPERTY_PROBE(elem), propertyName)) {
90
90
        gchar *value = NULL;
91
 
        g_object_get (G_OBJECT(elem), propertyName, &value, (const char*)NULL);
 
91
        g_object_get (G_OBJECT(elem), propertyName, &value, NULL);
92
92
        retVal = QByteArray(value);
93
93
        g_free (value);
94
94
    }
127
127
    return "";
128
128
}
129
129
 
130
 
void GstHelper::writePipelineDot(MediaObject *media, const QString &type)
131
 
{
132
 
    GstBin *bin = GST_BIN(media->pipeline());
133
 
    media->backend()->logMessage(QString("Dumping %0.dot").arg(type), Backend::Debug, media);
134
 
    GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(bin, GST_DEBUG_GRAPH_SHOW_ALL, QString("phonon-%0").arg(type).toUtf8().constData());
135
 
}
136
 
 
137
 
 
138
130
} //namespace Gstreamer
139
131
} //namespace Phonon
140
132