Hello guyes.
In the message bus function, I always have msg-> src 0xffffffff, so I cannot
use the following besause i get sergmentation fault
case GST_MESSAGE_STATE_CHANGED:
{
GstState state;
GstElement * element = GST_ELEMENT(GST_MESSAGE_SRC(msg));
gst_element_get_state(element, &state, nullptr, 0);
g_print("Element %s changed state to %d\n",
GST_MESSAGE_SRC_NAME(msg), state);
if(GST_ELEMENT(msg->src) == data->pipeline)
{
if(state == GST_STATE_PLAYING)
{
if(!once)
{
once = TRUE;
g_print("gst_element_seek_simple (GST_SEEK_FLAG_SEGMENT
| GST_SEEK_FLAG_FLUSH)\n");
if(!gst_element_seek_simple(data->pipeline,
GST_FORMAT_TIME, GstSeekFlags(GST_SEEK_FLAG_SEGMENT | GST_SEEK_FLAG_FLUSH),
0))
{
g_print("gst_element_seek_simple failed\n");
}
}
}
}
break;
}
p.s I get this error on ARM. Everything works on x86
--
Sent from:
http://gstreamer-devel.966125.n4.nabble.com/_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel