New, also help on dealing with multiple audio streams using gstreamer-rs

Michael Johnson liquidmikerrs at gmail.com
Thu Dec 17 14:31:34 UTC 2020


Yeah that was it, if I sleep the main thread it can then be switched

Thank you so much for all your help. It's been very informative

On Thu, 17 Dec 2020, 14:28 Michael Johnson, <liquidmikerrs at gmail.com> wrote:

> Can you send back the test case where the switch is working. I still have
> it a line above the fixed aspect ratio, and that may still be too soon for
> it?
>
> On Thu, 17 Dec 2020, 14:27 Sebastian Dröge, <sebastian at centricular.com>
> wrote:
>
>> On Thu, 2020-12-17 at 14:18 +0000, Michael Johnson wrote:
>>
>> This then brings back to the original point. As commented in the test
>> case, setting the property of current audio is doing absolutely nothing,
>> even with removing the set in the callback
>>
>>
>> That works fine for me with your code. 0, 1, and 2 all have different
>> audio.
>>
>> You just have to make sure to set the track after playbin is started and
>> knows the number of tracks. Which it notifies you about with the
>> "audio-changed" signal.
>> But you can set that property from anywhere, it doesn't have to be from
>> the signal handler.
>>
>> --
>>
>> Sebastian Dröge, Centricular Ltd · https://www.centricular.com
>> <http://www.centricular.com>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201217/1da3ab62/attachment.htm>


More information about the gstreamer-devel mailing list