Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion media/server/main/source/MediaPipelineServerInternal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ MediaPipelineServerInternal::~MediaPipelineServerInternal()
m_mainThread->unregisterClient(m_mainThreadClientId);
};
m_mainThread->enqueueTaskAndWait(m_mainThreadClientId, task);
m_gstPlayer.reset();
}

bool MediaPipelineServerInternal::load(MediaType type, const std::string &mimeType, const std::string &url)
Expand Down Expand Up @@ -1593,10 +1594,14 @@ void MediaPipelineServerInternal::notifySourceFlushed(MediaSourceType mediaSourc

void MediaPipelineServerInternal::notifyPlaybackInfo(const PlaybackInfo &playbackInfo)
{
if (m_mediaPipelineClient)
if (m_gstPlayer && m_mediaPipelineClient)
{
m_mediaPipelineClient->notifyPlaybackInfo(playbackInfo);
}
else
Comment thread
rekhap2kandhavelan marked this conversation as resolved.
Comment thread
rekhap2kandhavelan marked this conversation as resolved.
{
RIALTO_SERVER_LOG_WARN("notifyPlaybackInfo skipped due to invalid gstPlayer");
}
}

void MediaPipelineServerInternal::scheduleNotifyNeedMediaData(MediaSourceType mediaSourceType)
Expand Down
Loading