示例#1
0
static int mls_post_complete(void* data, MediaSource* rootSource, MediaControl* mediaControl)
{
    MultipleMediaSources* multSource = (MultipleMediaSources*)data;
    MediaSourceElement* ele = &multSource->sources;
    int result = 1;

    while (ele != NULL && ele->source != NULL)
    {
        if (ele->isComplete)
        {
            ele->postComplete = msc_post_complete(ele->source, rootSource, mediaControl);
        }
        result &= ele->isComplete && ele->postComplete;
        ele = ele->next;
    }

    return result;
}
示例#2
0
static int cps_post_complete(void* data, MediaSource* rootSource, MediaControl* mediaControl)
{
    ClipSource* clipSource = (ClipSource*)data;

    return msc_post_complete(clipSource->targetSource, rootSource, mediaControl);
}