Ignore:
Timestamp:
08-04-11 11:04:25 (2 years ago)
Author:
thomas
Message:
  • morituri/common/encode.py: wavenc does not have merge_tags, it seems. So don't call an element a tagger, don't merge tags if there is no tagger, and complain if there is no merge_tags when we think there should be.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/morituri/common/encode.py

    r429 r434  
    7373    lossless = True 
    7474 
     75# FIXME: wavenc does not have merge_tags 
    7576class WavProfile(Profile): 
    7677    name = 'wav' 
    7778    extension = 'wav' 
    78     pipeline = 'wavenc name=tagger' 
     79    pipeline = 'wavenc' 
    7980    lossless = True 
    8081 
     
    176177 
    177178        # set tags 
    178         if self._taglist: 
    179             tagger.merge_tags(self._taglist, gst.TAG_MERGE_APPEND) 
     179        if tagger and self._taglist: 
     180            # FIXME: under which conditions do we not have merge_tags ? 
     181            # See for example comment saying wavenc did not have it. 
     182            try: 
     183                tagger.merge_tags(self._taglist, gst.TAG_MERGE_APPEND) 
     184            except AttributeError, e: 
     185                self.warning('Could not merge tags: %r', 
     186                    log.getExceptionMessage(e)) 
    180187 
    181188        self.debug('pausing pipeline') 
Note: See TracChangeset for help on using the changeset viewer.