[video_player] fix type mismatch (#82)
Signed-off-by: Makoto Sato <[email protected]>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user