volume can't be set

Qian Peng flyalay at gmail.com
Sun Feb 23 23:49:20 PST 2014

Hi all!

I connected Spice server by windows spice client which is complied by
mingw32, and set the volume.

But the volume didn't change.

the code form:

create pipe code:
if (pipeline == NULL)
            pipeline = g_strdup_printf("appsrc is-live=1 do-timestamp=0
caps=\"%s\" name=\"appsrc\" ! queue ! "
                                       "audioconvert ! audioresample !
autoaudiosink name=\"audiosink\"", audio_caps);
        SPICE_DEBUG("audio pipeline: %s", pipeline);
        p->playback.pipe = gst_parse_launch(pipeline, &error);
        if (p->playback.pipe == NULL) {
            g_warning("Failed to create pipeline: %s", error->message);
            goto lerr;
        p->playback.src = gst_bin_get_by_name(GST_BIN(p->playback.pipe),
        p->playback.sink = gst_bin_get_by_name(GST_BIN(p->playback.pipe),

set volume code:
GstElement *e;
    if (GST_IS_BIN(p->playback.sink))
        e = gst_bin_get_by_interface(GST_BIN(p->playback.sink),
        e = g_object_ref(p->playback.sink);

I have debuged the code. when the volume was set, the e returned NULL.

Is it a bug? or the code isn't a good implementation?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140224/ab89347e/attachment-0001.html>

More information about the gstreamer-devel mailing list