bool MediaPlayerESPlusPlayerTV::RequestVideoDecodedBuffer() {
NOTIMPLEMENTED();
+ return false;
}
void MediaPlayerESPlusPlayerTV::SetStreamInfo(DemuxerStream::Type type,
const base::Value::Dict* dict = root.value().GetIfDict();
- if (!ValidatePluginType(pmf, dict))
+ if (!dict || !ValidatePluginType(pmf, dict))
return false;
// Let's set the default values for the info in case they are not present
return; // LCOV_EXCL_LINE
}
+ if (!rwhva() || !rwhva()->offscreen_helper())
+ return;
+
content::ContextMenuParams convertedParams = params; // LCOV_EXCL_LINE
gfx::Point convertedPoint =
/* LCOV_EXCL_START */
if (result) {
// TODO(m.majczak) consider a workaround for the deep copy
list = EwkValueCast(array)->GetValue()->GetIfList();
+ if (!list)
+ return EINA_FALSE;
+
base::Value* val = nullptr;
val = &(list->operator[](position));
if (!val)
base::UnsafeSharedMemoryRegion::TakeHandleForSerialization(
host_->ShareUnsafeSharedMemoryRegionWithRemote(shm)));
- *host_handle_id =
- content::PepperPluginInstance::Get(instance)
- ->GetVarTracker()
- ->TrackSharedMemoryRegion(instance, std::move(shm), size);
+ content::PepperPluginInstance* plugin_instance = content::PepperPluginInstance::Get(instance);
+ if (!plugin_instance)
+ return;
+
+ ppapi::VarTracker* tracker = plugin_instance->GetVarTracker();
+ if (!tracker)
+ return;
+
+ *host_handle_id = tracker->TrackSharedMemoryRegion(instance, std::move(shm), size);
}
} // namespace pepper