equal
deleted
inserted
replaced
30 g_printerr ("WARNING: %s (%s)\n", err->message, (dbg) ? dbg : "no details"); |
30 g_printerr ("WARNING: %s (%s)\n", err->message, (dbg) ? dbg : "no details"); |
31 |
31 |
32 g_error_free (err); |
32 g_error_free (err); |
33 g_free (dbg); |
33 g_free (dbg); |
34 } |
34 } |
35 #ifdef __SYMBIAN32__ |
|
36 EXPORT_C |
|
37 #endif |
|
38 |
|
39 |
35 |
40 static void |
36 static void |
41 error_cb (GstBus * bus, GstMessage * msg, GMainLoop * main_loop) |
37 error_cb (GstBus * bus, GstMessage * msg, GMainLoop * main_loop) |
42 { |
38 { |
43 GError *err = NULL; |
39 GError *err = NULL; |
81 GstPadLinkReturn ret; |
77 GstPadLinkReturn ret; |
82 GstElement *fakesink; |
78 GstElement *fakesink; |
83 GstPad *fakesink_pad; |
79 GstPad *fakesink_pad; |
84 |
80 |
85 fakesink = gst_element_factory_make ("fakesink", NULL); |
81 fakesink = gst_element_factory_make ("fakesink", NULL); |
86 fakesink_pad = gst_element_get_pad (fakesink, "sink"); |
82 fakesink_pad = gst_element_get_static_pad (fakesink, "sink"); |
87 |
83 |
88 gst_bin_add (GST_BIN (pipeline), fakesink); |
84 gst_bin_add (GST_BIN (pipeline), fakesink); |
89 |
85 |
90 /* this doesn't really seem right, but it makes things work for me */ |
86 /* this doesn't really seem right, but it makes things work for me */ |
91 gst_element_set_state (fakesink, GST_STATE_PLAYING); |
87 gst_element_set_state (fakesink, GST_STATE_PLAYING); |