#4233 NORM Future : Record camera feed doesn't survive suspend/resume.

Zarro Boogs per Child bugtracker at laptop.org
Tue Oct 16 13:37:56 EDT 2007


#4233: Record camera feed doesn't survive suspend/resume.
-------------------------------+--------------------------------------------
  Reporter:  MitchellNCharity  |       Owner:  erikb         
      Type:  defect            |      Status:  new           
  Priority:  normal            |   Milestone:  Future Release
 Component:  camera-activity   |     Version:                
Resolution:                    |    Keywords:                
  Verified:  0                 |  
-------------------------------+--------------------------------------------
Changes (by erikb):

 * cc: olpc-dev at mediamods.com (added)


Comment:

 * test one - no camera, just xv *
 from xo terminal: gst-launch-0.10 videotestsrc ! xvimagesink
 then: suspend/resume
 problem: green screen where video should be until you move the terminal
 window
 notes: this behavior has nothing to do with the camera.  this might have
 something to do with xv.  also note, activities don't have a signal to
 listen to know when this has happened.  two ideas for quick fixes: (1) on
 returning from suspend/resume move some window around. (2) let activities
 listen for a resume signal and they can move a window around.

 * next test: no camera, no xv *
 from xo terminal: gst-launch-0.10 videotestsrc ! ximagesink
 then: suspend/resume
 problem: actually, this comes out of suspend/resume fine.
 notes: reinforces theory that xv might have some problems coming out of
 resume.  Please see #2272.

 * next test: camera, xv *
 from xo terminal: gst-launch-0.10 v4l2src ! xvimagesink
 then: suspend/resume
 problem: we come back with the pipeline down and gstreamer errors ("Failed
 trying to get video frames from device 'dev/video0'")
 notes: looks like camera doesn't like being suspended.  activities will
 have to listen for dead pipelines to reboot themselves coming out of
 resume.  it would be nice if the camera managed to maintain the pipeline
 though.

 * next test: camera, no xv *
 from xo terminal: gst-launch-0.10 v4l2src ! ximagesink
 then: suspend/resume
 problem: we come back with the identical results to the previous test:
 pipeline down and gstreamer errors.
 notes: see above.

 * comments *
 There are at least four bugs here:
 (1) xv display after resume (see #2272)
 (2) can activities listen for resume events to handle (1)?
 (3) no buffers from the camera on either/both suspend/resume
 (4) activities that use the camera need to handle dead pipelines.

 I will work on (4).  JG, any thoughts?  Okay to divide these up?

-- 
Ticket URL: <https://dev.laptop.org/ticket/4233#comment:7>
One Laptop Per Child <https://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list