~ubuntu-branches/ubuntu/jaunty/moon/jaunty

« back to all changes in this revision

Viewing changes to src/pipeline.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-03-06 10:09:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090306100949-pgxjxjqltaxi12rz
Tags: 1.0.1-0ubuntu1
New upstream release (LP: #338665)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1031
1031
MediaResult
1032
1032
ASXDemuxerInfo::Supports (IMediaSource *source)
1033
1033
{
1034
 
        char buffer[4];
1035
 
        bool result;
1036
 
        
1037
 
        if (!source->Peek ((guint8 *) buffer, 4))
1038
 
                return MEDIA_FAIL;
1039
 
        
1040
 
        result = !g_ascii_strncasecmp (buffer, "<asx", 4) ||
1041
 
                !g_ascii_strncasecmp (buffer, "[Ref", 4);
1042
 
 
1043
 
        return result ? MEDIA_SUCCESS : MEDIA_FAIL;
 
1034
        return PlaylistParser::IsValidPlaylist (source) ? MEDIA_SUCCESS : MEDIA_FAIL;
1044
1035
}
1045
1036
 
1046
1037
IMediaDemuxer *