<div dir="ltr">Sorry for the messy formating</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jul 27, 2013 at 4:32 PM, Max Sarajlija <span dir="ltr"><<a href="mailto:maksimilijans@gmail.com" target="_blank">maksimilijans@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As i said in an earlier mail i'm porting Flumotion to the new GStreamer (in PyGi).<div>I got into some trouble with the video test producer, here's a function which was before i started porting </div>

<div><a href="https://code.flumotion.com/cgit/flumotion/tree/flumotion/component/producers/videotest/videotest.py#n41" target="_blank">https://code.flumotion.com/cgit/flumotion/tree/flumotion/component/producers/videotest/videotest.py#n41</a><br>

</div><div><br></div><div>and here's the same one adapted for the new GStreamer:</div><div><br></div><div><a href="https://github.com/bananadine/flumotion/blob/master/flumotion/component/producers/videotest/videotest.py#L42" target="_blank">https://github.com/bananadine/flumotion/blob/master/flumotion/component/producers/videotest/videotest.py#L42</a><br>

</div><div><br></div><div>Here's the problem:</div><div><br></div><div>I get an error regarding this line: <a href="https://github.com/bananadine/flumotion/blob/master/flumotion/component/feedcomponent.py#L444" target="_blank">https://github.com/bananadine/flumotion/blob/master/flumotion/component/feedcomponent.py#L444</a></div>

<div><br></div><div>Saying 'NoneType' object has no attribute 'split'</div><div><br></div><div>Pipeline get's updated every time with another string and i figured it gets a None value in one of those times, so i printed pipeline and found out that that's true.</div>

<div>It gets a none value when it's time to parse the video test producer (videotestsrc).</div><div>So i wen't to the function in videotest.py (which i gave a link for above) and printed capsString. In return i got:</div>

<div><p style="font-size:medium;font-family:'Times New Roman';margin:0px">videotestsrc is-live=true name=source ! identity name=identity silent=TRUE ! video/x-raw format=(string)I420 width=320 height=240 framerate=(fraction)5/1 pixel-aspect-ratio=(fraction)1/1</p>

<p style="font-size:medium;font-family:'Times New Roman';margin:0px"><br></p><p style="font-size:medium;font-family:'Times New Roman';margin:0px">Then after 'caps = Gst.Caps.from_string(capsString)' i tried 'print caps.to_string()' and i got nothing.</p>

<p style="font-size:medium;font-family:'Times New Roman';margin:0px"><br></p><p style="font-size:medium;font-family:'Times New Roman';margin:0px">So i figure the problem must be when converting the string (capsString) to a Caps object.</p>

<p style="font-size:medium;font-family:'Times New Roman';margin:0px"><br></p><p style="font-size:medium;font-family:'Times New Roman';margin:0px">Does anyone know how dos can be fixed and what's going on?</p>

<p style="font-size:medium;font-family:'Times New Roman';margin:0px"><br></p><p style="font-size:medium;font-family:'Times New Roman';margin:0px">Thanks,<br><br>Max</p></div>
</div>
</blockquote></div><br></div>