[mythtv-commits] Ticket #2287: mythtv-vid: X11 Video output fixes branch

MythTV mythtv at cvs.mythtv.org
Fri Jul 27 21:46:35 UTC 2007

#2287: mythtv-vid: X11 Video output fixes branch
 Reporter:  danielk  |        Owner:  danielk
     Type:  task     |       Status:  new    
 Priority:  minor    |    Milestone:  unknown
Component:  mythtv   |      Version:  head   
 Severity:  medium   |   Resolution:         
  Mlocked:  0        |  

Comment(by danielk):

 (In [14068]) Refs #2287. This makes 3 changes to the
 VideoOutput::InputChanged() and a complimentary change to

 The main change is to add a new param "codec_private". The OS X DVDV
 playback renderer needs access to the DVDV decoder which is created in
 AvFormatDecoder. This allows this data to be passed to VideoOutputQuartz
 in a generic way which we could reuse in the future without changing the
 InputChanged() signature again.

 The two smaller changes were things I've wanted in the API for a while,
 but were too trivial to make the API change for alone. The changes are to:
 (1) return a ok/failed status from InputChanged(). Changing the resolution
 of a video can fail if the resolution exceeds what the hardware is capable
 of, as in #3680. In [14009], I was able to check the error status after
 calling InputChanged() to avoid the segfault. But actually returning this
 information is much nicer API wise. (2) The other is to use a QSize for
 the dimensions of the video, this avoids us needing to convert from QSize
 to ints and back to QSize when calling InputChanged().

 Finally, VideoOutput::Create() just had the "codec_private" paramater
 added so that we can pass the initial information in when creating a
 VideoOutput instance. This wasn't added to VideoOutput::Init() since we
 can just pass the codec_private into the constructors that need it and
 keep the changeset much smaller.

Ticket URL: <http://svn.mythtv.org/trac/ticket/2287#comment:60>
MythTV <http://svn.mythtv.org/trac>

More information about the mythtv-commits mailing list