gst_plugins_base/gst/playback/decodetest.c
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
    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 
    35 
    39 
    36 static void
    40 static void
    37 error_cb (GstBus * bus, GstMessage * msg, GMainLoop * main_loop)
    41 error_cb (GstBus * bus, GstMessage * msg, GMainLoop * main_loop)
    38 {
    42 {
    39   GError *err = NULL;
    43   GError *err = NULL;
    77   GstPadLinkReturn ret;
    81   GstPadLinkReturn ret;
    78   GstElement *fakesink;
    82   GstElement *fakesink;
    79   GstPad *fakesink_pad;
    83   GstPad *fakesink_pad;
    80 
    84 
    81   fakesink = gst_element_factory_make ("fakesink", NULL);
    85   fakesink = gst_element_factory_make ("fakesink", NULL);
    82   fakesink_pad = gst_element_get_static_pad (fakesink, "sink");
    86   fakesink_pad = gst_element_get_pad (fakesink, "sink");
    83 
    87 
    84   gst_bin_add (GST_BIN (pipeline), fakesink);
    88   gst_bin_add (GST_BIN (pipeline), fakesink);
    85 
    89 
    86   /* this doesn't really seem right, but it makes things work for me */
    90   /* this doesn't really seem right, but it makes things work for me */
    87   gst_element_set_state (fakesink, GST_STATE_PLAYING);
    91   gst_element_set_state (fakesink, GST_STATE_PLAYING);