mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-04 17:52:29 +00:00
tests: fix compilation
This commit is contained in:
parent
06311362e9
commit
8417a7103a
3 changed files with 19 additions and 19 deletions
|
@ -33,13 +33,13 @@ create_ogg_vorbis_profile (guint presence, gchar * preset)
|
||||||
GstEncodingContainerProfile *cprof;
|
GstEncodingContainerProfile *cprof;
|
||||||
GstCaps *ogg, *vorbis;
|
GstCaps *ogg, *vorbis;
|
||||||
|
|
||||||
ogg = gst_caps_new_simple ("application/ogg", NULL);
|
ogg = gst_caps_new_empty_simple ("application/ogg");
|
||||||
cprof =
|
cprof =
|
||||||
gst_encoding_container_profile_new ((gchar *) "myprofile", NULL, ogg,
|
gst_encoding_container_profile_new ((gchar *) "myprofile", NULL, ogg,
|
||||||
NULL);
|
NULL);
|
||||||
gst_caps_unref (ogg);
|
gst_caps_unref (ogg);
|
||||||
|
|
||||||
vorbis = gst_caps_new_simple ("audio/x-vorbis", NULL);
|
vorbis = gst_caps_new_empty_simple ("audio/x-vorbis");
|
||||||
fail_unless (gst_encoding_container_profile_add_profile (cprof,
|
fail_unless (gst_encoding_container_profile_add_profile (cprof,
|
||||||
(GstEncodingProfile *) gst_encoding_audio_profile_new (vorbis, preset,
|
(GstEncodingProfile *) gst_encoding_audio_profile_new (vorbis, preset,
|
||||||
NULL, presence)));
|
NULL, presence)));
|
||||||
|
@ -54,19 +54,19 @@ create_ogg_theora_vorbis_profile (guint theorapresence, guint vorbispresence)
|
||||||
GstEncodingContainerProfile *prof;
|
GstEncodingContainerProfile *prof;
|
||||||
GstCaps *ogg, *vorbis, *theora;
|
GstCaps *ogg, *vorbis, *theora;
|
||||||
|
|
||||||
ogg = gst_caps_new_simple ("application/ogg", NULL);
|
ogg = gst_caps_new_empty_simple ("application/ogg");
|
||||||
prof =
|
prof =
|
||||||
gst_encoding_container_profile_new ((gchar *) "myprofile", NULL, ogg,
|
gst_encoding_container_profile_new ((gchar *) "myprofile", NULL, ogg,
|
||||||
NULL);
|
NULL);
|
||||||
gst_caps_unref (ogg);
|
gst_caps_unref (ogg);
|
||||||
|
|
||||||
vorbis = gst_caps_new_simple ("audio/x-vorbis", NULL);
|
vorbis = gst_caps_new_empty_simple ("audio/x-vorbis");
|
||||||
fail_unless (gst_encoding_container_profile_add_profile (prof,
|
fail_unless (gst_encoding_container_profile_add_profile (prof,
|
||||||
(GstEncodingProfile *) gst_encoding_audio_profile_new (vorbis, NULL,
|
(GstEncodingProfile *) gst_encoding_audio_profile_new (vorbis, NULL,
|
||||||
NULL, vorbispresence)));
|
NULL, vorbispresence)));
|
||||||
gst_caps_unref (vorbis);
|
gst_caps_unref (vorbis);
|
||||||
|
|
||||||
theora = gst_caps_new_simple ("video/x-theora", NULL);
|
theora = gst_caps_new_empty_simple ("video/x-theora");
|
||||||
fail_unless (gst_encoding_container_profile_add_profile (prof,
|
fail_unless (gst_encoding_container_profile_add_profile (prof,
|
||||||
(GstEncodingProfile *) gst_encoding_video_profile_new (theora, NULL,
|
(GstEncodingProfile *) gst_encoding_video_profile_new (theora, NULL,
|
||||||
NULL, theorapresence)));
|
NULL, theorapresence)));
|
||||||
|
@ -81,7 +81,7 @@ create_vorbis_only_profile (void)
|
||||||
GstEncodingProfile *prof;
|
GstEncodingProfile *prof;
|
||||||
GstCaps *vorbis;
|
GstCaps *vorbis;
|
||||||
|
|
||||||
vorbis = gst_caps_new_simple ("audio/x-vorbis", NULL);
|
vorbis = gst_caps_new_empty_simple ("audio/x-vorbis");
|
||||||
prof =
|
prof =
|
||||||
(GstEncodingProfile *) gst_encoding_audio_profile_new (vorbis, NULL, NULL,
|
(GstEncodingProfile *) gst_encoding_audio_profile_new (vorbis, NULL, NULL,
|
||||||
0);
|
0);
|
||||||
|
@ -122,7 +122,7 @@ GST_START_TEST (test_encodebin_states)
|
||||||
GST_STATE_CHANGE_FAILURE);
|
GST_STATE_CHANGE_FAILURE);
|
||||||
|
|
||||||
/* Set a profile on encodebin... */
|
/* Set a profile on encodebin... */
|
||||||
ogg = gst_caps_new_simple ("application/ogg", NULL);
|
ogg = gst_caps_new_empty_simple ("application/ogg");
|
||||||
prof = (GstEncodingProfile *) gst_encoding_container_profile_new ((gchar *)
|
prof = (GstEncodingProfile *) gst_encoding_container_profile_new ((gchar *)
|
||||||
"myprofile", NULL, ogg, NULL);
|
"myprofile", NULL, ogg, NULL);
|
||||||
gst_caps_unref (ogg);
|
gst_caps_unref (ogg);
|
||||||
|
@ -261,7 +261,7 @@ GST_START_TEST (test_encodebin_sink_pads_dynamic)
|
||||||
sinkpad = NULL;
|
sinkpad = NULL;
|
||||||
|
|
||||||
/* Check again with the 'request-pad' signal */
|
/* Check again with the 'request-pad' signal */
|
||||||
sinkcaps = gst_caps_new_simple ("audio/x-raw", NULL);
|
sinkcaps = gst_caps_new_empty_simple ("audio/x-raw");
|
||||||
g_signal_emit_by_name (ebin, "request-pad", sinkcaps, &sinkpad);
|
g_signal_emit_by_name (ebin, "request-pad", sinkcaps, &sinkpad);
|
||||||
gst_caps_unref (sinkcaps);
|
gst_caps_unref (sinkcaps);
|
||||||
fail_unless (sinkpad != NULL);
|
fail_unless (sinkpad != NULL);
|
||||||
|
@ -506,7 +506,7 @@ GST_START_TEST (test_encodebin_render_audio_only_static)
|
||||||
/* Requesting a new pad should fail */
|
/* Requesting a new pad should fail */
|
||||||
ASSERT_CRITICAL (gst_element_get_request_pad (ebin, "audio_0"));
|
ASSERT_CRITICAL (gst_element_get_request_pad (ebin, "audio_0"));
|
||||||
|
|
||||||
sinkcaps = gst_caps_new_simple ("audio/x-raw", NULL);
|
sinkcaps = gst_caps_new_empty_simple ("audio/x-raw");
|
||||||
g_signal_emit_by_name (ebin, "request-pad", sinkcaps, &sinkpad);
|
g_signal_emit_by_name (ebin, "request-pad", sinkcaps, &sinkpad);
|
||||||
gst_caps_unref (sinkcaps);
|
gst_caps_unref (sinkcaps);
|
||||||
fail_if (sinkpad != NULL);
|
fail_if (sinkpad != NULL);
|
||||||
|
@ -782,12 +782,12 @@ GST_START_TEST (test_encodebin_impossible_element_combination)
|
||||||
|
|
||||||
ebin = gst_element_factory_make ("encodebin", NULL);
|
ebin = gst_element_factory_make ("encodebin", NULL);
|
||||||
|
|
||||||
ogg = gst_caps_new_simple ("application/ogg", NULL);
|
ogg = gst_caps_new_empty_simple ("application/ogg");
|
||||||
prof = (GstEncodingProfile *) gst_encoding_container_profile_new ((gchar *)
|
prof = (GstEncodingProfile *) gst_encoding_container_profile_new ((gchar *)
|
||||||
"myprofile", NULL, ogg, NULL);
|
"myprofile", NULL, ogg, NULL);
|
||||||
gst_caps_unref (ogg);
|
gst_caps_unref (ogg);
|
||||||
|
|
||||||
x264 = gst_caps_new_simple ("video/x-h264", NULL);
|
x264 = gst_caps_new_empty_simple ("video/x-h264");
|
||||||
fail_unless (gst_encoding_container_profile_add_profile
|
fail_unless (gst_encoding_container_profile_add_profile
|
||||||
(GST_ENCODING_CONTAINER_PROFILE (prof),
|
(GST_ENCODING_CONTAINER_PROFILE (prof),
|
||||||
(GstEncodingProfile *) gst_encoding_video_profile_new (x264, NULL,
|
(GstEncodingProfile *) gst_encoding_video_profile_new (x264, NULL,
|
||||||
|
@ -851,7 +851,7 @@ GST_START_TEST (test_encodebin_reuse)
|
||||||
GstEncodingProfile *prof3;
|
GstEncodingProfile *prof3;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("application/ogg", NULL);
|
caps = gst_caps_new_empty_simple ("application/ogg");
|
||||||
prof1 = (GstEncodingProfile *) gst_encoding_container_profile_new ((gchar *)
|
prof1 = (GstEncodingProfile *) gst_encoding_container_profile_new ((gchar *)
|
||||||
"myprofile", NULL, caps, NULL);
|
"myprofile", NULL, caps, NULL);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
|
@ -81,7 +81,7 @@ GST_START_TEST (test_pb_utils_post_missing_messages)
|
||||||
ASSERT_CRITICAL (gst_missing_element_message_new (NULL, "rgbfyltr"));
|
ASSERT_CRITICAL (gst_missing_element_message_new (NULL, "rgbfyltr"));
|
||||||
ASSERT_CRITICAL (gst_missing_element_message_new (pipeline, NULL));
|
ASSERT_CRITICAL (gst_missing_element_message_new (pipeline, NULL));
|
||||||
|
|
||||||
caps = gst_caps_new_simple ("audio/x-dontexist", NULL);
|
caps = gst_caps_new_empty_simple ("audio/x-dontexist");
|
||||||
|
|
||||||
ASSERT_CRITICAL (gst_missing_decoder_message_new (NULL, caps));
|
ASSERT_CRITICAL (gst_missing_decoder_message_new (NULL, caps));
|
||||||
ASSERT_CRITICAL (gst_missing_decoder_message_new (pipeline, NULL));
|
ASSERT_CRITICAL (gst_missing_decoder_message_new (pipeline, NULL));
|
||||||
|
@ -193,7 +193,7 @@ GST_START_TEST (test_pb_utils_post_missing_messages)
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
/* create caps that exist */
|
/* create caps that exist */
|
||||||
caps = gst_caps_new_simple ("video/x-matroska", NULL);
|
caps = gst_caps_new_empty_simple ("video/x-matroska");
|
||||||
/* decoder (with known caps) */
|
/* decoder (with known caps) */
|
||||||
msg = gst_missing_decoder_message_new (pipeline, caps);
|
msg = gst_missing_decoder_message_new (pipeline, caps);
|
||||||
fail_unless (msg != NULL);
|
fail_unless (msg != NULL);
|
||||||
|
@ -429,7 +429,7 @@ GST_START_TEST (test_pb_utils_taglist_add_codec_info)
|
||||||
|
|
||||||
gst_pb_utils_init ();
|
gst_pb_utils_init ();
|
||||||
list = gst_tag_list_new ();
|
list = gst_tag_list_new ();
|
||||||
caps = gst_caps_new_simple ("video/x-theora", NULL);
|
caps = gst_caps_new_empty_simple ("video/x-theora");
|
||||||
ASSERT_CRITICAL (fail_if
|
ASSERT_CRITICAL (fail_if
|
||||||
(gst_pb_utils_add_codec_description_to_tag_list (NULL,
|
(gst_pb_utils_add_codec_description_to_tag_list (NULL,
|
||||||
GST_TAG_VIDEO_CODEC, caps)));
|
GST_TAG_VIDEO_CODEC, caps)));
|
||||||
|
|
|
@ -50,9 +50,9 @@ GST_START_TEST (test_profile_creation)
|
||||||
GstCaps *ogg, *vorbis, *theora;
|
GstCaps *ogg, *vorbis, *theora;
|
||||||
GstCaps *test1, *test2;
|
GstCaps *test1, *test2;
|
||||||
|
|
||||||
ogg = gst_caps_new_simple ("application/ogg", NULL);
|
ogg = gst_caps_new_empty_simple ("application/ogg");
|
||||||
vorbis = gst_caps_new_simple ("audio/x-vorbis", NULL);
|
vorbis = gst_caps_new_empty_simple ("audio/x-vorbis");
|
||||||
theora = gst_caps_new_simple ("video/x-theora", NULL);
|
theora = gst_caps_new_empty_simple ("video/x-theora");
|
||||||
|
|
||||||
encprof = (GstEncodingProfile *) gst_encoding_container_profile_new ((gchar *)
|
encprof = (GstEncodingProfile *) gst_encoding_container_profile_new ((gchar *)
|
||||||
"ogg-theora-vorbis", "dumb-profile", ogg, (gchar *) "dumb-preset");
|
"ogg-theora-vorbis", "dumb-profile", ogg, (gchar *) "dumb-preset");
|
||||||
|
@ -96,7 +96,7 @@ GST_START_TEST (test_profile_input_caps)
|
||||||
GstCaps *vorbis;
|
GstCaps *vorbis;
|
||||||
GstCaps *out, *restriction, *test1;
|
GstCaps *out, *restriction, *test1;
|
||||||
|
|
||||||
vorbis = gst_caps_new_simple ("audio/x-vorbis", NULL);
|
vorbis = gst_caps_new_empty_simple ("audio/x-vorbis");
|
||||||
|
|
||||||
/* Simple case, no restriction */
|
/* Simple case, no restriction */
|
||||||
sprof = (GstEncodingProfile *)
|
sprof = (GstEncodingProfile *)
|
||||||
|
|
Loading…
Reference in a new issue