mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
tests/thumbnails: Updates
This commit is contained in:
parent
bcb4496b35
commit
0fe25be4cb
1 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ static gboolean thumbnail_cb (gpointer pipeline);
|
||||||
static gboolean
|
static gboolean
|
||||||
thumbnail_cb (gpointer user)
|
thumbnail_cb (gpointer user)
|
||||||
{
|
{
|
||||||
GstBuffer *b = NULL;
|
GstSample *b = NULL;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GESTimelinePipeline *p;
|
GESTimelinePipeline *p;
|
||||||
|
|
||||||
|
@ -53,13 +53,13 @@ thumbnail_cb (gpointer user)
|
||||||
/* check raw rgb use-case with scaling */
|
/* check raw rgb use-case with scaling */
|
||||||
b = ges_timeline_pipeline_get_thumbnail_rgb24 (p, 320, 240);
|
b = ges_timeline_pipeline_get_thumbnail_rgb24 (p, 320, 240);
|
||||||
g_assert (b);
|
g_assert (b);
|
||||||
gst_buffer_unref (b);
|
gst_sample_unref (b);
|
||||||
|
|
||||||
/* check encoding use-case from caps */
|
/* check encoding use-case from caps */
|
||||||
b = NULL;
|
b = NULL;
|
||||||
b = ges_timeline_pipeline_get_thumbnail_buffer (p, caps);
|
b = ges_timeline_pipeline_get_thumbnail (p, caps);
|
||||||
g_assert (b);
|
g_assert (b);
|
||||||
gst_buffer_unref (b);
|
gst_sample_unref (b);
|
||||||
|
|
||||||
g_assert (ges_timeline_pipeline_save_thumbnail (p, -1, -1, (gchar *)
|
g_assert (ges_timeline_pipeline_save_thumbnail (p, -1, -1, (gchar *)
|
||||||
"image/jpeg", (gchar *) TEST_PATH));
|
"image/jpeg", (gchar *) TEST_PATH));
|
||||||
|
|
Loading…
Reference in a new issue