[video_player] fix type mismatch (#82)

Signed-off-by: Makoto Sato <[email protected]>
This commit is contained in:
Makoto Sato
2023-08-30 17:37:19 +09:00
committed by GitHub
parent 57f3aa88bf
commit f9e1817314
@@ -131,7 +131,7 @@ bool GstVideoPlayer::SetSeek(int64_t position) {
int64_t GstVideoPlayer::GetDuration() { int64_t GstVideoPlayer::GetDuration() {
GstFormat fmt = GST_FORMAT_TIME; GstFormat fmt = GST_FORMAT_TIME;
int64_t duration_msec; gint64 duration_msec;
if (!gst_element_query_duration(gst_.pipeline, fmt, &duration_msec)) { if (!gst_element_query_duration(gst_.pipeline, fmt, &duration_msec)) {
std::cerr << "Failed to get duration" << std::endl; std::cerr << "Failed to get duration" << std::endl;
return -1; return -1;