Hi, I have written a GUI application, which reads from a given filesystem and displays pictures in a QT Window. Here I am using Gstreamer, Playbin pipeline, XImageSink for video sink element. And every time I am calling gst_x_overlay_set_xwindow_id() function to pass my QT window handle to the Gstreamer Playbin in my bus watcher function. After receiving EOS of each picture the pipeline is paused so that user can select Next or Prev buttons to navigate the picture filesystem.
But after clicking Next/Prev 4-5 times my application is crashed and it is giving BadGC (Invalid GC parameter) error. I couldn’t figure out why it is coming. Any help is appreciated. Deb
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In data venerdì 5 febbraio 2010 06:58:03, [hidden email] ha scritto:
: > Hi, > > I have written a GUI application, which reads from a given filesystem > and displays pictures in a QT Window. Here I am using Gstreamer, Playbin > pipeline, XImageSink for video sink element. And every time I am calling > gst_x_overlay_set_xwindow_id() function to pass my QT window handle to > the Gstreamer Playbin in my bus watcher function. After receiving EOS of > each picture the pipeline is paused so that user can select Next or Prev > buttons to navigate the picture filesystem. > > But after clicking Next/Prev 4-5 times my application is crashed and it > is giving BadGC (Invalid GC parameter) error. I couldn't figure out why > it is coming. setAttribute(Qt.WA_NativeWindow) on the video widget, this solved the issue for me, Nicola > > Any help is appreciated. > > Regards, > Deb > ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Thanks Nicole for your reply. I tried WA_NativeWindow but still getting Bad GC and application crashing. But before application crashed after 5-6 Next/Prev, now it crashes after 10-12 clicks on Next/Prev button.
Deb |
In data sabato 6 febbraio 2010 10:51:15, Debsu ha scritto:
: > Thanks Nicole for your reply. I tried WA_NativeWindow but still getting Bad > GC and application crashing. But before application crashed after 5-6 > Next/Prev, now it crashes after 10-12 clicks on Next/Prev button. > > Deb > I cannot reproduce the error in my player, do you use set_xwindow_id when you receive the prepare-xwindow-id message on the bus? ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Actually, I am calling
gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (GST_MESSAGE_SRC (msg)), window_id) when I am receiving this GST_IS_X_OVERLAY(GST_MESSAGE_SRC (msg)) in the bus. -----Original Message----- From: Mailing List SVR [mailto:[hidden email]] Sent: Saturday, February 06, 2010 6:53 PM To: Debojyoti Pal (WT01 - PES-Mobile-Auto-CE Practice) Cc: Discussion of the development of GStreamer Subject: Re: [gst-devel] Gstreamer Giving Bad GC errors. In data sabato 6 febbraio 2010 10:51:15, Debsu ha scritto: : > Thanks Nicole for your reply. I tried WA_NativeWindow but still getting Bad > GC and application crashing. But before application crashed after 5-6 > Next/Prev, now it crashes after 10-12 clicks on Next/Prev button. > > Deb > I cannot reproduce the error in my player, do you use set_xwindow_id when you receive the prepare-xwindow-id message on the bus? ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In data sabato 6 febbraio 2010 14:27:29, [hidden email] ha scritto:
: > Actually, I am calling > gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (GST_MESSAGE_SRC (msg)), > window_id) > > when I am receiving this GST_IS_X_OVERLAY(GST_MESSAGE_SRC (msg)) in the > bus. My implementation is in python not in c, here is the relevant code: message_name = message.structure.get_name() if message_name == "prepare-xwindow-id": imagesink = message.src imagesink.set_property("force-aspect-ratio", True) imagesink.set_xwindow_id(self.xid) where self.xid is: self.xid=self.ui.widgetVideo.winId() defined in the widget init. I tested my application doing at least 50 Next/Prev with no crash, so I think is something in your code and not a gstreamer or qt problem, good luck, Nicola > > -----Original Message----- > From: Mailing List SVR [mailto:[hidden email]] > Sent: Saturday, February 06, 2010 6:53 PM > To: Debojyoti Pal (WT01 - PES-Mobile-Auto-CE Practice) > Cc: Discussion of the development of GStreamer > Subject: Re: [gst-devel] Gstreamer Giving Bad GC errors. > > In data sabato 6 febbraio 2010 10:51:15, Debsu ha scritto: > : > Thanks Nicole for your reply. I tried WA_NativeWindow but still > > getting > Bad > > > GC and application crashing. But before application crashed after 5-6 > > Next/Prev, now it crashes after 10-12 clicks on Next/Prev button. > > > > Deb > > I cannot reproduce the error in my player, do you use set_xwindow_id > when you > receive the prepare-xwindow-id message on the bus? > > Please do not print this email unless it is absolutely necessary. > > The information contained in this electronic message and any attachments to > this message are intended for the exclusive use of the addressee(s) and > may contain proprietary, confidential or privileged information. If you > are not the intended recipient, you should not disseminate, distribute or > copy this e-mail. Please notify the sender immediately and destroy all > copies of this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. > The company accepts no liability for any damage caused by any virus > transmitted by this email. > > www.wipro.com > ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |