[Spice-commits] src/spice-gstaudio.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jan 16 11:32:09 UTC 2019
src/spice-gstaudio.c | 23 -----------------------
1 file changed, 23 deletions(-)
New commits:
commit 58aab431883f11b2e8e1ccc9e44e25c452311d5a
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Wed Jan 16 15:31:54 2019 +0400
Revert "gst: check pulsesrc version >= 1.15"
This reverts commit a44cd29d30cf368e3e1a8b53cf97ec30a9b6dcdd.
diff --git a/src/spice-gstaudio.c b/src/spice-gstaudio.c
index c9240d0..84f452d 100644
--- a/src/spice-gstaudio.c
+++ b/src/spice-gstaudio.c
@@ -527,30 +527,7 @@ SpiceGstaudio *spice_gstaudio_new(SpiceSession *session, GMainContext *context,
const char *name)
{
GError *err = NULL;
-
if (gst_init_check(NULL, NULL, &err)) {
- GstPluginFeature *pulsesrc;
-
- pulsesrc = gst_registry_lookup_feature(gst_registry_get(), "pulsesrc");
- if (pulsesrc) {
- unsigned maj, min;
- GstPlugin *plugin = gst_plugin_feature_get_plugin(pulsesrc);
-
- if (sscanf(gst_plugin_get_version(plugin), "%u.%u", &maj, &min) != 2) {
- g_warn_if_reached();
- gst_object_unref(plugin);
- gst_object_unref(pulsesrc);
- return NULL;
- }
-
- gst_object_unref(plugin);
- gst_object_unref(pulsesrc);
- if (maj < 1 || min < 15) {
- g_warning("Bad pulsesrc version, lowering its rank");
- gst_plugin_feature_set_rank(pulsesrc, GST_RANK_NONE);
- }
- }
-
return g_object_new(SPICE_TYPE_GSTAUDIO,
"session", session,
"main-context", context,
More information about the Spice-commits
mailing list