in source/src/AppRtspSrc.c [167:187]
static void onMsgEosFromBus(GstBus* bus, GstMessage* msg, gpointer* udata)
{
STATUS retStatus = STATUS_SUCCESS;
PRtspSrcContext pRtspSrcContext = (PRtspSrcContext) udata;
PCodecConfiguration pGstConfiguration;
CHK((bus != NULL) && (msg != NULL) && (udata != NULL), STATUS_MEDIA_NULL_ARG);
pGstConfiguration = &pRtspSrcContext->codecConfiguration;
closeGstRtspSrc(pRtspSrcContext);
if (pRtspSrcContext->mediaEosHook != NULL) {
retStatus = pRtspSrcContext->mediaEosHook(pRtspSrcContext->mediaEosHookUserdata);
}
CleanUp:
if (pRtspSrcContext != NULL) {
updateCodecStatus(pRtspSrcContext, STATUS_MEDIA_BUS_EOS);
}
return;
}