Changeset 2113

Show
Ignore:
Timestamp:
2006-02-27 23:46:33 (3 years ago)
Author:
scott
Message:

Fixed incompatibilities with the merged annodex plugins in gstreamer.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • annoamp/trunk/annoamp.py

    r1864 r2113  
    157157    else: 
    158158        tree_selection.select_path(playlist.get_path(playlist.iter_nth_child(playlist.iter_nth_child(None,current),chapter))) 
    159         desc = player.chapter_info_list[current][chapter].props.desc 
     159        desc = player.chapter_info_list[current][chapter].props.description 
    160160        if desc != None: 
    161             xml.get_widget("description").set_text(player.chapter_info_list[current][chapter].props.desc
     161            xml.get_widget("description").set_text(player.chapter_info_list[current][chapter].props.description
    162162        else: 
    163163            xml.get_widget("description").set_text("No Description") 
     
    167167        else: 
    168168            xml.get_widget("link").set_label('No Link.') 
    169         img_src = player.chapter_info_list[current][chapter].props.img_src 
     169        img_src = player.chapter_info_list[current][chapter].props.img_uri 
    170170        if img_src != None: 
    171171            try: 
  • annoamp/trunk/anxplayer.py

    r1864 r2113  
    11#!/usr/bin/env python 
    2 #Copyright (C) 2005  Scott Shawcroft 
    3 #                    Jason Kivlighn 
     2#Copyright (C) 2005-2006  Scott Shawcroft 
     3#                         Jason Kivlighn 
    44# 
    55#This program is free software; you can redistribute it and/or 
     
    9898 
    9999    def bus_call (self, bus, message): 
    100         #self.debug(str(message.type) + "=>" + str(message)) 
     100        self.debug(str(message.type) + "=>" + str(message)) 
    101101        if message.type == gst.MESSAGE_TAG: 
    102102            self.debug("Tag!") 
     
    158158                if message.type == gst.MESSAGE_EOS: 
    159159                    #song is over 
     160                    self.debug("We've come to the end of a file.") 
    160161                    self.chapter_info_list[self.file_to_index_map[filename]] = chapter_info 
    161162                    self.add_file_callback(filename, playlist_info) 
     
    176177                            pass 
    177178                        elif type(tag).__name__ == '__main__.GstCmmlTagClip': 
    178                             #FIXME remove 1000000s gst.SECOND should be enough. 
    179179                            playlist_str = format_time(int(tag.props.start_time/gst.SECOND)) 
    180                             if tag.props.desc != None: 
    181                                 playlist_str += " - " + tag.props.desc 
     180                            if tag.props.description != None: 
     181                                playlist_str += " - " + tag.props.description 
    182182                            else: 
    183183                                playlist_str += " - " + tag.props.id 
     
    193193            result = fake.set_state(gst.STATE_PLAYING) 
    194194        else: 
     195            self.chapter_info_list.append([]) 
    195196            self.add_file_callback(filename, []) 
    196197            return