GstEncodingContainerProfile *cprof;
GstCaps *ogg, *vorbis;
- ogg = gst_caps_new_simple ("application/ogg", NULL);
+ ogg = gst_caps_new_empty_simple ("application/ogg");
cprof =
gst_encoding_container_profile_new ((gchar *) "myprofile", NULL, ogg,
NULL);
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,
(GstEncodingProfile *) gst_encoding_audio_profile_new (vorbis, preset,
NULL, presence)));
GstEncodingContainerProfile *prof;
GstCaps *ogg, *vorbis, *theora;
- ogg = gst_caps_new_simple ("application/ogg", NULL);
+ ogg = gst_caps_new_empty_simple ("application/ogg");
prof =
gst_encoding_container_profile_new ((gchar *) "myprofile", NULL, ogg,
NULL);
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,
(GstEncodingProfile *) gst_encoding_audio_profile_new (vorbis, NULL,
NULL, vorbispresence)));
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,
(GstEncodingProfile *) gst_encoding_video_profile_new (theora, NULL,
NULL, theorapresence)));
GstEncodingProfile *prof;
GstCaps *vorbis;
- vorbis = gst_caps_new_simple ("audio/x-vorbis", NULL);
+ vorbis = gst_caps_new_empty_simple ("audio/x-vorbis");
prof =
(GstEncodingProfile *) gst_encoding_audio_profile_new (vorbis, NULL, NULL,
0);
GST_STATE_CHANGE_FAILURE);
/* 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 *)
"myprofile", NULL, ogg, NULL);
gst_caps_unref (ogg);
sinkpad = NULL;
/* 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);
gst_caps_unref (sinkcaps);
fail_unless (sinkpad != NULL);
/* Requesting a new pad should fail */
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);
gst_caps_unref (sinkcaps);
fail_if (sinkpad != 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 *)
"myprofile", NULL, ogg, NULL);
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
(GST_ENCODING_CONTAINER_PROFILE (prof),
(GstEncodingProfile *) gst_encoding_video_profile_new (x264, NULL,
GstEncodingProfile *prof3;
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 *)
"myprofile", NULL, caps, NULL);
gst_caps_unref (caps);
ASSERT_CRITICAL (gst_missing_element_message_new (NULL, "rgbfyltr"));
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 (pipeline, NULL));
gst_caps_unref (caps);
/* 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) */
msg = gst_missing_decoder_message_new (pipeline, caps);
fail_unless (msg != NULL);
gst_pb_utils_init ();
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
(gst_pb_utils_add_codec_description_to_tag_list (NULL,
GST_TAG_VIDEO_CODEC, caps)));
GstCaps *ogg, *vorbis, *theora;
GstCaps *test1, *test2;
- ogg = gst_caps_new_simple ("application/ogg", NULL);
- vorbis = gst_caps_new_simple ("audio/x-vorbis", NULL);
- theora = gst_caps_new_simple ("video/x-theora", NULL);
+ ogg = gst_caps_new_empty_simple ("application/ogg");
+ vorbis = gst_caps_new_empty_simple ("audio/x-vorbis");
+ theora = gst_caps_new_empty_simple ("video/x-theora");
encprof = (GstEncodingProfile *) gst_encoding_container_profile_new ((gchar *)
"ogg-theora-vorbis", "dumb-profile", ogg, (gchar *) "dumb-preset");
GstCaps *vorbis;
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 */
sprof = (GstEncodingProfile *)