Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
XiphQT
XiphQT
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 88
    • Issues 88
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • Xiph.Org
  • XiphQTXiphQT
  • Issues
  • #755

Closed
Open
Opened Nov 27, 2005 by traneko@traneko

MovieImportDataRef(Handle) and SetOffsetAndLimit fails

When using oggvorbis component with my app, MovieImportDataRef() with a subtype HandleDataHandlerSubType fails. HandleDataHandler doesn't seem to support DataH****64() on the current QuickTime 7. Also, MovieImportSetOffsetAndLimit() isn't working, when trying to point the data in the archived file.

The API sequences are roughly like this:

Handle data, dataRef; ComponentInstance ci;
Movie movie; TimeValue duration; Track track; long flags;

assert((data = NewHandle(size_of_oggvorbis_data)) != NULL);
memcpy(*data, ptr_of_oggvorbis_data, size_of_oggvorbis_data);
assert(PtrToHand((Ptr)&data, &dataRef, sizeof(Ptr)));
assert(OpenADefaultComponent(MovieImportType, 'OggS', &ci));
assert((movie = NewMovie(newMovieActive)) != NULL);
assert(MovieImportDataRef(ci, dataRef, HandleDataHandlerSubType, movie,
  NULL, &track, 0, &duration, movieImportCreateTrack, &flags));

assert(OpenADefaultComponent(MovieImportType, 'OggS', &ci));
assert(MovieImportSetOffsetAndLimit(ci, data_offset, data_offset + data_size));
assert(MovieImportFile(ci, &file, chunkMovie, NULL, &track, 0, &duration,
  movieImportCreateTrack, &flags));
// doesn't start from data_offset

I'll attach the patch for the problem afterward.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: xiph/xiph-qt#755