Text test source element

iron_guitarist1987 jtrinidadperez at gmail.com
Thu Jun 14 08:51:56 PDT 2012


Does this look better?

static GstFlowReturn
gst_text_test_src_create (GstBaseSrc * basesrc, guint64 offset,
    guint length, GstBuffer ** buffer)
{
  GstFlowReturn res;
  GstTexttestsrc *src;
  src = GST_TEXT_TEST_SRC (basesrc);
  GstBuffer *buf;
  
  buf = gst_buffer_new_and_alloc (sizeof("test"));
  buf = g_strdup("test string");
  
  *buffer = buf;

  return GST_FLOW_OK;
}

When I run it I get: 

$ gst-launch texttestsrc ! georeg_test ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Caught SIGSEGV accessing address 0x74736574
Spinning.  Please run 'gdb gst-launch 14052' to continue debugging, Ctrl-C
to quit, or Ctrl-\ to dump core.

-----
The greatest trick the devil ever pulled was convincing the World that Java was better than C++.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Text-test-source-element-tp4655287p4655289.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list