Skip to content

Commit

Permalink
Make result optional (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicer86 committed Jun 9, 2024
1 parent 4945d26 commit d7169f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/implementation/video_media_information.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace
return nullptr;
}

QDateTime getCreationTime(AVFormatContext* context)
std::optional<QDateTime> getCreationTime(AVFormatContext* context)
{
const auto creationTimeEntry = context->metadata? av_dict_get(context->metadata, "creation_time", nullptr, 0) : nullptr;
const QString creationTimeStr = creationTimeEntry? creationTimeEntry->value: nullptr;
Expand Down

0 comments on commit d7169f4

Please sign in to comment.