mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
some minor fixes..
Original commit message from CVS: some minor fixes..
This commit is contained in:
parent
9207932788
commit
75e66711f9
2 changed files with 7 additions and 7 deletions
|
@ -34,8 +34,8 @@ main (int argc,char *argv[])
|
|||
|
||||
dvdec = gst_elementfactory_make ("dvdec", "decoder");
|
||||
cspace = gst_elementfactory_make ("colorspace", "cspace");
|
||||
//videoscale = gst_elementfactory_make ("videoscale", "videoscale");
|
||||
//gtk_object_set (GTK_OBJECT (videoscale), "width", 352, "height",288, NULL);
|
||||
videoscale = gst_elementfactory_make ("videoscale", "videoscale");
|
||||
gtk_object_set (GTK_OBJECT (videoscale), "width", 352, "height",288, NULL);
|
||||
encoder = gst_elementfactory_make ("mpeg2enc", "mpeg2enc");
|
||||
fdsink = gst_elementfactory_make ("fdsink", "fdsink");
|
||||
|
||||
|
@ -45,13 +45,13 @@ main (int argc,char *argv[])
|
|||
gst_bin_add (GST_BIN (bin), GST_ELEMENT (src));
|
||||
gst_bin_add (GST_BIN (bin), GST_ELEMENT (dvdec));
|
||||
gst_bin_add (GST_BIN (bin), GST_ELEMENT (cspace));
|
||||
//gst_bin_add (GST_BIN (bin), GST_ELEMENT (videoscale));
|
||||
gst_bin_add (GST_BIN (bin), GST_ELEMENT (videoscale));
|
||||
gst_bin_add (GST_BIN (bin), GST_ELEMENT (encoder));
|
||||
gst_bin_add (GST_BIN (bin), GST_ELEMENT (fdsink));
|
||||
|
||||
gst_element_connect (src, "src", dvdec, "sink");
|
||||
gst_element_connect (cspace, "src", encoder, "sink");
|
||||
//gst_element_connect (videoscale, "src", encoder, "sink");
|
||||
gst_element_connect (cspace, "src", videoscale, "sink");
|
||||
gst_element_connect (videoscale, "src", encoder, "sink");
|
||||
gst_element_connect (encoder, "src", fdsink, "sink");
|
||||
gst_element_connect (dvdec, "video", cspace, "sink");
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ main (int argc,char *argv[])
|
|||
// cspace = gst_elementfactory_make ("colorspace", "cspace");
|
||||
videosink = gst_elementfactory_make ("xvideosink", "videosink");
|
||||
if (!videosink) fprintf(stderr,"no dvdec\n"),exit(1);
|
||||
gtk_object_set(GTK_OBJECT(videosink),"width",720,"height",480,NULL);
|
||||
gtk_object_set(GTK_OBJECT(videosink),"width",720,"height",576,NULL);
|
||||
|
||||
gst_bin_add(GST_BIN(bin),GST_ELEMENT(src));
|
||||
gst_bin_add(GST_BIN(bin),GST_ELEMENT(dvdec));
|
||||
|
@ -66,7 +66,7 @@ main (int argc,char *argv[])
|
|||
draw = gst_util_get_int_arg (GTK_OBJECT (videosink), "xid"),
|
||||
|
||||
gtk_socket = gtk_socket_new ();
|
||||
gtk_widget_set_usize(gtk_socket,720,480);
|
||||
gtk_widget_set_usize(gtk_socket,720,576);
|
||||
gtk_widget_show (gtk_socket);
|
||||
|
||||
gnome_app_set_contents(GNOME_APP(appwindow), vbox1);
|
||||
|
|
Loading…
Reference in a new issue