Aw: Re: Re: Re: GStreamer application access violation in random locations
pfarmer
flacone at gmx.de
Tue Feb 2 00:47:54 PST 2016
Thanks again Sebastian,
I am in contact with the Simulink developers now, but not much progress
there yet.
Generally speaking: *is it safe to link the GStreamer binaries with a VS2013
compiler?*
Meaning: I have installed GStreamer binaries for 64bit Windows. These are
compiled with MinGW as far as I can see. And I have a project that is
compiled with VS2013 64bit. This project uses (links) the GStreamer MinGW
64bit libraries. Is this actually safe?
The simple test program that I used:
========================================
#include <gst/gst.h>
int main(int argc, char** argv)
{
gst_init(NULL, NULL);
GstElement* pipeline = gst_parse_launch("videotestsrc ! autovideosink",
NULL);
gst_element_set_state(pipeline, GST_STATE_PLAYING);
while (true){};
}
=======================================
This does work always.
And the corresponding Simulink block:
=======================================
#define S_FUNCTION_LEVEL 2
#define S_FUNCTION_NAME sfunc_gstmin
#include <simstruc.h>
#include <gst/gst.h>
static void mdlInitializeSizes(SimStruct *S)
{
gst_init(NULL, NULL);
GstElement* pipeline = gst_parse_launch("videotestsrc ! autovideosink",
NULL);
gst_element_set_state(pipeline, GST_STATE_PLAYING);
ssSetNumSFcnParams(S, 0);
}
static void mdlInitializeSampleTimes(SimStruct *S)
{
}
static void mdlOutputs(SimStruct *S, int_T tid)
{
UNUSED_ARG(tid);
UNUSED_ARG(S);
}
static void mdlTerminate(SimStruct *S)
{
UNUSED_ARG(S);
}
// Required S-function trailer
#ifdef MATLAB_MEX_FILE /* Is this file being compiled as a MEX-file? */
#include "simulink.c" /* MEX-file interface mechanism */
#else
#include "cg_sfun.h" /* Code generation registration function */
#endif
==================================================
This does crash often (not always; once run: also no crash anymore), when
run in a Simulink model.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/GStreamer-application-access-violation-in-random-locations-tp4674999p4675592.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list