<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.4.4">
</HEAD>
<BODY>
Le vendredi 07 décembre 2012 à 04:05 -0800, deepthips a écrit :<BR>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <TT><FONT COLOR="#2e3436">From some links I saw to use gst_pad_get_parent instead of GST_PAD_PARENT.</FONT></TT><BR>
    <TT><FONT COLOR="#2e3436">This solved the seg fault. But I am quite not sure how.  All comments will</FONT></TT><BR>
    <TT><FONT COLOR="#2e3436">be very helpful.</FONT></TT> <BR>
</BLOCKQUOTE>
<BR>
The main difference is that gst_pad_get_parent() will return a reference on the object (you need to unref it when done). This prevent another thread from freeing the object while you are doing your operations. GST_PAD_PARENT() is normally used when the stream lock is taken, i.e. when the chain function is called.<BR>
<BR>
regards,<BR>
Nicolas
</BODY>
</HTML>