[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:
Tim-Philipp Müller 2008-02-23 15:10:49 +00:00 committed by Matthew Waters
parent 0569f75d95
commit 1d59ab7b37
2 changed files with 7 additions and 2 deletions

View file

@ -413,6 +413,9 @@ gst_gl_buffer_format_from_video_format (GstVideoFormat format)
case GST_VIDEO_FORMAT_I420:
case GST_VIDEO_FORMAT_YV12:
return GST_GL_BUFFER_FORMAT_PLANAR420;
default:
GST_WARNING ("GstVideoFormat %d not implemented", format);
/* fall through */
case GST_VIDEO_FORMAT_UNKNOWN:
return GST_GL_BUFFER_FORMAT_UNKNOWN;
}

View file

@ -737,7 +737,8 @@ gst_gl_display_draw_image (GstGLDisplay * display, GstVideoFormat type,
ret = glXGetSyncValuesOML (display->display, display->window,
&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
@ -816,7 +817,8 @@ gst_gl_display_draw_texture (GstGLDisplay * display, GLuint texture,
ret = glXGetSyncValuesOML (display->display, display->window,
&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