mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
ffmpeg: add "FFmpeg" tag to PandaSystem
This commit is contained in:
parent
19b67c3674
commit
77d6a9f5c9
@ -17,8 +17,8 @@
|
||||
#include "ffmpegVideoCursor.h"
|
||||
#include "ffmpegAudio.h"
|
||||
#include "ffmpegAudioCursor.h"
|
||||
|
||||
#include "movieTypeRegistry.h"
|
||||
#include "pandaSystem.h"
|
||||
|
||||
extern "C" {
|
||||
#include <libavcodec/avcodec.h>
|
||||
@ -129,6 +129,9 @@ init_libffmpeg() {
|
||||
FfmpegVideo::register_with_read_factory();
|
||||
FfmpegVideoCursor::register_with_read_factory();
|
||||
|
||||
PandaSystem *ps = PandaSystem::get_global_ptr();
|
||||
ps->add_system("FFmpeg");
|
||||
|
||||
// Register ffmpeg as catch-all audiovideo type.
|
||||
MovieTypeRegistry *reg = MovieTypeRegistry::get_global_ptr();
|
||||
reg->register_audio_type(&FfmpegAudio::make, "*");
|
||||
|
Loading…
x
Reference in New Issue
Block a user