Issue with caps from string in only one case
Max Sarajlija
maksimilijans at gmail.com
Sat Jul 27 07:32:27 PDT 2013
As i said in an earlier mail i'm porting Flumotion to the new GStreamer (in
PyGi).
I got into some trouble with the video test producer, here's a function
which was before i started porting
https://code.flumotion.com/cgit/flumotion/tree/flumotion/component/producers/videotest/videotest.py#n41
and here's the same one adapted for the new GStreamer:
https://github.com/bananadine/flumotion/blob/master/flumotion/component/producers/videotest/videotest.py#L42
Here's the problem:
I get an error regarding this line:
https://github.com/bananadine/flumotion/blob/master/flumotion/component/feedcomponent.py#L444
Saying 'NoneType' object has no attribute 'split'
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.
It gets a none value when it's time to parse the video test producer
(videotestsrc).
So i wen't to the function in videotest.py (which i gave a link for above)
and printed capsString. In return i got:
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
Then after 'caps = Gst.Caps.from_string(capsString)' i tried 'print
caps.to_string()' and i got nothing.
So i figure the problem must be when converting the string (capsString) to
a Caps object.
Does anyone know how dos can be fixed and what's going on?
Thanks,
Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130727/5415afcd/attachment.html>
More information about the gstreamer-devel
mailing list