After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 673481 - "Resource not found" error when setting png-source
"Resource not found" error when setting png-source
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.10.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-04-04 08:28 UTC by Francesco Bruni
Modified: 2012-06-07 13:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Francesco Bruni 2012-04-04 08:28:48 UTC
If I code a Python script setting up the png file to overlay where I define the pipeline, all works. 
If I set the png path image in an other function, I got: 

Error: Resource not found. gstfilesrc.c(1028): gst_file_src_start (): /GstPipeline:player/GstFileSrc:png-source

is this a bug or simply I'm wrong? (No BT)
Thanks.

Regards, 
Francesco Bruni
Comment 1 André Klapper 2012-04-04 09:38:01 UTC
Can you attach a minimal testcase here please?
Comment 2 Francesco Bruni 2012-04-04 09:55:41 UTC
I coded:

in the "__init__" I set my pipeline (that works correcly testing it on shell);
then I call a function to start to play my video. 
In this last function I use another one to set the image which have to be overlayed on screen. 
It hase to change dynamically, so I have to, each time I need, create an image and overlay it. 

So I coded:

def __init__(self):
  self.png_source = gst.element_factory_make("filesrc", "png-source")

def start(self,w):
  ...
  show()
  ...

def show(self)
  ... #here I use another function to create the image
  ...
  self.png_source.set_property("location",self.filepath_image)
  self.timeout_source = glib.timeout_add(self.sleep_time, self.show)
  
I hope to have been clear enough.
Comment 3 Vincent Penquerc'h 2012-06-07 13:53:43 UTC
If I understand what you're doing, then you're doing it wrong.

If you want to change location at run time, you will have to bring the filesrc to READY, change location, then bring it back to PLAYING.

If you want to have no overlay at startup, then either start with a alphaed image, or look in the overlay element if there's a "display" or "visible" property or something similar.

Another way would be to remove filesrc entirely, and use coglogoinsert, which probably supports switching at runtime (I've not checked).

In case I misunderstood what you're doing, feel free to reopen giving more details.