GCallback sink_handoff, gpointer sink_handoff_user_data)
{
GstElement *pipeline;
- GstElement *src, *capsfilter1, *identity, *scale, *capsfilter2, *sink;
+ GstElement *src, *ffmpegcolorspace, *capsfilter1, *identity, *scale,
+ *capsfilter2, *sink;
GstBus *bus;
GMainLoop *loop;
GstCaps *copy;
fail_unless (src != NULL);
g_object_set (G_OBJECT (src), "num-buffers", 5, NULL);
+ ffmpegcolorspace = gst_element_factory_make ("ffmpegcolorspace", "csp");
+ fail_unless (ffmpegcolorspace != NULL);
+
capsfilter1 = gst_element_factory_make ("capsfilter", "filter1");
fail_unless (capsfilter1 != NULL);
copy = gst_caps_copy (caps);
sink_handoff_user_data);
}
- gst_bin_add_many (GST_BIN (pipeline), src, capsfilter1, identity, scale,
- capsfilter2, sink, NULL);
- fail_unless (gst_element_link_many (src, capsfilter1, identity, scale,
- capsfilter2, sink, NULL));
+ gst_bin_add_many (GST_BIN (pipeline), src, ffmpegcolorspace, capsfilter1,
+ identity, scale, capsfilter2, sink, NULL);
+ fail_unless (gst_element_link_many (src, ffmpegcolorspace, capsfilter1,
+ identity, scale, capsfilter2, sink, NULL));
loop = g_main_loop_new (NULL, FALSE);
_test_negotiation_message (GstBus * bus, GstMessage * message,
TestNegotiationData * data)
{
+ GError *err = NULL;
+ gchar *debug;
+
switch (GST_MESSAGE_TYPE (message)) {
case GST_MESSAGE_ERROR:
+ gst_message_parse_error (message, &err, &debug);
+ gst_object_default_error (GST_MESSAGE_SRC (message), err, debug);
+ g_error_free (err);
+ g_free (debug);
+ g_assert_not_reached ();
+ break;
case GST_MESSAGE_WARNING:
+ gst_message_parse_warning (message, &err, &debug);
+ gst_object_default_error (GST_MESSAGE_SRC (message), err, debug);
+ g_error_free (err);
+ g_free (debug);
g_assert_not_reached ();
break;
case GST_MESSAGE_EOS: