<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">

<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1546212780;
        mso-list-type:hybrid;
        mso-list-template-ids:-1045278676 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1
        {mso-list-id:2095281197;
        mso-list-type:hybrid;
        mso-list-template-ids:-25548112 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->




<div class=Section1>

<p class=MsoNormal><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D">Thanks a million Edward.&nbsp; I still don&#8217;t really understand the
debug output, but a little of it went a long way.&nbsp; And in particular, thanks
for telling me how to get it to work with a pipeline in a program.&nbsp; <o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D">HINT IF YOU MISSED IT:&nbsp; Put the GST_DEBUG settings in an
environment variable.&nbsp; <o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp; export GST_DEBUG=whatever&nbsp; <o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp; unset GST_DEBUG &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# to turn debug off<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D">Just adding two more cents worth:&nbsp; I got to using gst_parse_launh()
because I never could get request pads to work.&nbsp; The example in the book is
good, but it skipped two important points.&nbsp; So for future warriors:&nbsp; <o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoListParagraph style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#1F497D"><span style="mso-list:Ignore">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;
</span></span></span></b><![endif]><b><span style="font-size:10.0pt;font-family:
&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#1F497D">Put the code (inline or call) that links
the request pad right in line with the pipeline building process, before
changing the state to &#8220;PLAYING&#8221;.&nbsp; <br>
<br>
I never could quite figure out whether it had to come before or after the
pipeline was moved to GST_STATE_PLAYING and whether or not the request pads
were present before some signal was issued.<br>
<br>
<o:p></o:p></span></b></p>

<p class=MsoListParagraph style="text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#1F497D"><span style="mso-list:Ignore">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;
</span></span></span></b><![endif]><b><span style="font-size:10.0pt;font-family:
&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#1F497D">You&#8217;re going to want to use the same caps
over and over.&nbsp; Go ahead and codify a GstCaps and pass it around.&nbsp; Fill in as
many of the fields as you can so there is no question of incompleteness.<o:p></o:p></span></b></p>

<p class=MsoListParagraph><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D">And in this particular case, the filesink goes to ASYNC until
new data arrives.&nbsp; Don&#8217;t gst_element_get_state( fildsink, NULL, NULL, -1 ).&nbsp; <o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D">Finally, a thought.&nbsp; I code in mangled C++ using mostly C syntax
for &#8220;G&#8221; functions in the methods and using friend functions for the callbacks.&nbsp;
The nature of the friend function beast is that the friend needs a pointer to its
class.&nbsp; For that reason, I keep most of my element, caps, etc vars as class
members, public if possible, so that I pass &#8220;this&#8221; to the friend functions as
the third gpointer arg.&nbsp; (FWIW, I always call the pointer in the functions &#8220;that&#8221;
just so it&#8217;s obvious what&#8217;s up).&nbsp; This way there are no global variables that
can interfere with other code and I still get great access. <o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D">Wes<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></b></p>

<p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
color:#1F497D">&nbsp;<o:p></o:p></span></b></p>

<p class=MsoNormal><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>

</div>





<br><hr align="left" width="300">
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Change-File-Locations-for-Container-Formats-that-Have-Headers-tp2283747p2287327.html">RE: Change File Locations for Container Formats that Have Headers</a><br>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br>