Hi On Fri, Aug 29, 2008 at 8:00 AM, Brian Cameron <[EMAIL PROTECTED]> wrote: > The attached patch fixes this. Totem, rhythmbox, and other GStreamer > based programs use similar logic.
Yep, looks good, although useless with pulsesink. How do I sign-off ;) > The second problem is that after fixing the above, canberra-gtk-play > just immediately returns and does not play the file. That's expected. Eventually, canberra-gtk-play could wait for completion before returning. Dunno. > I believe the > issue is somehow in the bus_cb function, since it does work much > better and plays the file if I comment out these lines from the > driver_play function: > > /* > bus = gst_pipeline_get_bus(GST_PIPELINE (out->pipeline)); > gst_bus_set_sync_handler(bus, bus_cb, out); > gst_object_unref(bus); > */ > > However, after commenting out those lines, it seems that > canberra-gtk-play hangs after playing the file and never exits. > I suspect this is probably because the bus_cb is supposed to > catch this. But, for some reason, this doesn't seem to be > working on Solaris. I'm not sure why. Yes, the bus_cb is there mainly to catch the state-change and EOS. Thanks for your reviewing and patch. regards, -- Marc-André Lureau _______________________________________________ libcanberra-discuss mailing list [email protected] https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss
