GNOME Bugzilla – Bug 773638
wasapisrc, wasapisink: Allow to select device by passing WASAPI Endpoint ID
Last modified: 2018-01-31 10:41:05 UTC
Created attachment 338736 [details] [review] Add endpoint-id property The attached patch allows to set the device (called Endpoint ID in WASAPI terminology) in wasapisrc and wasapisink
Created attachment 338737 [details] [review] Add endpoint-id property Add endpoint-id property
Review of attachment 338737 [details] [review]: Generally looks good ::: sys/wasapi/gstwasapisink.c @@ +42,3 @@ +enum +{ + PROP_ENDPOINT_ID 0 is not a valid property id (that's why there's often an unused PROP_0). I wonder why this didn't fail in various ways for you when you tried it. @@ +200,3 @@ + ("Failed to get default device")); + goto beach; + } You might want to store this in self->endpoint_id then and do a g_object_notify()
Created attachment 338836 [details] [review] Add endpoint-id property
I have added missing PROP_0, but honestly speaking I don't fully understand your second comment?
This is now fixed in -bad with the "device" property which takes a string endpoint id: https://bugzilla.gnome.org/show_bug.cgi?id=792897 Can you please try the latest code in -bad and verify that it's fixed for you too?