sony / flutter-elinux-plugins

Flutter plugins for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
46 stars 24 forks source link

[video_player] fix type mismatch #82

Closed makotosato-at closed 1 year ago

makotosato-at commented 1 year ago

The following error occurs when building:

gst_video_player.cc:135:8: error: no matching function for call to
'gst_element_query_duration'
  if (!gst_element_query_duration(gst_.pipeline, fmt, &duration_msec)) {
       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gstreamer-1.0/gst/gstutils.h:1057:25: note: candidate function not viable:
no known conversion from 'int64_t *' (aka 'long long *') to 'gint64 *' (aka 'long *') for
3rd argument
gboolean                gst_element_query_duration      (GstElement *element, GstFormat
format, gint64 *duration);
                        ^
1 error generated.

So, I fix it.