<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false">I have a audio pipeline with a sink. When I switch audio devices, I want to replace the sink only. What I did in the code are,</div><div dir="ltr" data-setdir="false">1. set pipeline state to NULL<br></div><div dir="ltr" data-setdir="false">1. disconnect sink element from the pipeline</div><div dir="ltr" data-setdir="false">2. unref it <===problem here: reference count is 0 and can not unref it. Why?<br></div><div dir="ltr" data-setdir="false">3. create a new sink element and link it to pipeline</div><div dir="ltr" data-setdir="false">4. set pipeline state to PLAYING</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> the pipeline works fine with the new sink. But why can not the old sink be deleted?</div><div dir="ltr" data-setdir="false"> <br></div><div dir="ltr" data-setdir="false"> thanks for your help,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> Joe<br></div></div></body></html>