can_be_shared


Description:

[ Version ( since = "1.24" ) ]
public bool can_be_shared ()

Check if the pipeline for this can be shared between multiple clients.

This checks if the media is shareable and whether it is either reusable or was never unprepared before.

The function must be called with @lock.

Parameters:

this

a Media

Returns:

true if the media can be shared between clients.