mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
[060/906] * gst-libs/gst/gl/gstglbuffer.c: (gst_gl_buffer_format_from_video_format): Fix compiler warning if there are video format enums gstglbuffer doesn't know about yet. * gst-libs/gst/gl/gstgldisplay.c: (gst_gl_display_upload_texture_rectangle), (gst_gl_display_draw_texture): Fix printf format for 64-bit integers.
This commit is contained in:
parent
a3366c9f04
commit
01d6f2818c
2 changed files with 7 additions and 2 deletions
|
@ -413,6 +413,9 @@ gst_gl_buffer_format_from_video_format (GstVideoFormat format)
|
||||||
case GST_VIDEO_FORMAT_I420:
|
case GST_VIDEO_FORMAT_I420:
|
||||||
case GST_VIDEO_FORMAT_YV12:
|
case GST_VIDEO_FORMAT_YV12:
|
||||||
return GST_GL_BUFFER_FORMAT_PLANAR420;
|
return GST_GL_BUFFER_FORMAT_PLANAR420;
|
||||||
|
default:
|
||||||
|
GST_WARNING ("GstVideoFormat %d not implemented", format);
|
||||||
|
/* fall through */
|
||||||
case GST_VIDEO_FORMAT_UNKNOWN:
|
case GST_VIDEO_FORMAT_UNKNOWN:
|
||||||
return GST_GL_BUFFER_FORMAT_UNKNOWN;
|
return GST_GL_BUFFER_FORMAT_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
|
@ -737,7 +737,8 @@ gst_gl_display_draw_image (GstGLDisplay * display, GstVideoFormat type,
|
||||||
|
|
||||||
ret = glXGetSyncValuesOML (display->display, display->window,
|
ret = glXGetSyncValuesOML (display->display, display->window,
|
||||||
&ust, &mst, &sbc);
|
&ust, &mst, &sbc);
|
||||||
GST_ERROR ("sync values %d %lld %lld %lld", ret, ust, mst, sbc);
|
GST_ERROR ("sync values %d %" G_GINT64_FORMAT " %" G_GINT64_FORMAT
|
||||||
|
" %" G_GINT64_FORMAT, ret, ust, mst, sbc);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -816,7 +817,8 @@ gst_gl_display_draw_texture (GstGLDisplay * display, GLuint texture,
|
||||||
|
|
||||||
ret = glXGetSyncValuesOML (display->display, display->window,
|
ret = glXGetSyncValuesOML (display->display, display->window,
|
||||||
&ust, &mst, &sbc);
|
&ust, &mst, &sbc);
|
||||||
GST_ERROR ("sync values %d %lld %lld %lld", ret, ust, mst, sbc);
|
GST_ERROR ("sync values %d %" G_GINT64_FORMAT " %" G_GINT64_FORMAT
|
||||||
|
" %" G_GINT64_FORMAT, ret, ust, mst, sbc);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue