How to generate error message when there is an internal read error in one of the object in a pipeline

tanmay.ambre ambre.tanmay at gmail.com
Tue May 22 03:53:14 PDT 2012


Found the answer.

I need to generate a 

GST_ELEMENT_ERROR messege

which stops the pipeline gracefully.
This is part of my fix.

	if (hRes != DS_OK)
	{
		GST_ERROR("Error Called Called")	;
		GST_ELEMENT_ERROR (dsoundsrc, RESOURCE, READ,
        ("Device Error hRes = %i", hRes), (NULL));
		GST_DSOUND_UNLOCK (dsoundsrc);
		return -1;
	}

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-generate-error-message-when-there-is-an-internal-read-error-in-one-of-the-object-in-a-pipeline-tp4648532p4649686.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list