~ubuntu-branches/debian/squeeze/smplayer/squeeze

« back to all changes in this revision

Viewing changes to src/mediadata.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Breuil Cyril
  • Date: 2007-06-24 16:35:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070624163529-hhckbmd24uicada7
Tags: 0.5.20-0ubuntu1
* New upstream release
* Change Maintainer Email

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    clip_comment = "";
75
75
    clip_software = "";
76
76
 
 
77
        stream_title = "";
 
78
        stream_url = "";
 
79
 
77
80
        // Other data
78
81
        demuxer="";
79
82
        video_format="";
88
91
}
89
92
 
90
93
QString MediaData::displayName() {
 
94
        if (!clip_name.isEmpty()) return clip_name;
 
95
        else
 
96
        if (!stream_title.isEmpty()) return stream_title;
 
97
 
91
98
        QFileInfo fi(filename);
92
99
        if (fi.exists()) 
93
100
                return fi.fileName(); // filename without path