From: Sjoerd Simons Date: Fri, 18 Jan 2013 22:14:27 +0000 (+0100) Subject: uvch264: Port test to gstreamer 1.0 X-Git-Tag: 1.19.3~507^2~14092 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=040626c4736270500fd7c2c06f4d8c992a651b05;p=platform%2Fupstream%2Fgstreamer.git uvch264: Port test to gstreamer 1.0 --- diff --git a/tests/examples/uvch264/Makefile.am b/tests/examples/uvch264/Makefile.am index e02b888..43d0c54 100644 --- a/tests/examples/uvch264/Makefile.am +++ b/tests/examples/uvch264/Makefile.am @@ -20,7 +20,6 @@ test_uvch264_LDADD = \ $(GST_PLUGINS_BASE_LIBS) \ $(GST_VIDEO_LIBS) \ $(GST_LIBS) \ - -lgstinterfaces-@GST_MAJORMINOR@ \ $(GTK_LIBS) \ $(GMODULE_EXPORT_LIBS) diff --git a/tests/examples/uvch264/test-uvch264.c b/tests/examples/uvch264/test-uvch264.c index 78d8ac1..4541b86 100644 --- a/tests/examples/uvch264/test-uvch264.c +++ b/tests/examples/uvch264/test-uvch264.c @@ -1,7 +1,6 @@ #include #include #include -#include #include #define WINDOW_GLADE "window.glade" @@ -247,8 +246,7 @@ set_caps (Main * self, gboolean send_event) if (send_event) { gst_element_send_event (GST_ELEMENT (self->src), - gst_event_new_custom (GST_EVENT_CUSTOM_UPSTREAM, - gst_structure_new ("renegotiate", NULL))); + gst_event_new_reconfigure ()); } end: @@ -357,12 +355,14 @@ _bus_callback (GstBus * bus, GstMessage * message, gpointer user_data) GstObject *source = NULL; if (GST_MESSAGE_TYPE (message) == GST_MESSAGE_ELEMENT && - gst_structure_has_name (s, "prepare-xwindow-id")) { + gst_structure_has_name (s, "prepare-window-handle")) { source = GST_MESSAGE_SRC (message); if (!g_strcmp0 (gst_object_get_name (source), "h264_sink")) - gst_x_overlay_set_window_handle (GST_X_OVERLAY (source), h264_xid); + gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (source), + h264_xid); else - gst_x_overlay_set_window_handle (GST_X_OVERLAY (source), preview_xid); + gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (source), + preview_xid); } return TRUE; @@ -531,7 +531,7 @@ main (int argc, char *argv[]) self.bin = gst_parse_launch ("uvch264_src name=src src.vidsrc ! queue ! " - "capsfilter name=vid_cf ! identity name=identity ! ffdec_h264 ! " + "capsfilter name=vid_cf ! identity name=identity ! decodebin ! " "xvimagesink name=h264_sink async=false " "src.vfsrc ! queue ! capsfilter name=vf_cf ! " "xvimagesink name=preview_sink async=false", NULL); diff --git a/tests/examples/uvch264/window.glade b/tests/examples/uvch264/window.glade index 8b7624a..6b28d7e 100644 --- a/tests/examples/uvch264/window.glade +++ b/tests/examples/uvch264/window.glade @@ -307,7 +307,7 @@ True True ● - video/x-raw-yuv,width=320,height=240,format=(fourcc)YUY2,framerate=15/1 + video/x-raw,width=320,height=240,format=(fourcc)YUY2,framerate=15/1 False