decklinksink: port to 1.0

Compiles, not tested yet.
This commit is contained in:
Tim-Philipp Müller 2013-02-28 18:54:15 +00:00
parent c16224a220
commit 74ca4aeefd
3 changed files with 152 additions and 750 deletions

View file

@ -22,8 +22,8 @@ endif
libgstdecklink_la_LIBTOOLFLAGS = --tag=disable-static libgstdecklink_la_LIBTOOLFLAGS = --tag=disable-static
# gstdecklinksink.cpp
libgstdecklink_la_SOURCES = \ libgstdecklink_la_SOURCES = \
gstdecklinksink.cpp \
gstdecklinksrc.cpp \ gstdecklinksrc.cpp \
gstdecklink.cpp \ gstdecklink.cpp \
capture.cpp capture.cpp

File diff suppressed because it is too large Load diff

View file

@ -29,6 +29,7 @@ G_BEGIN_DECLS
#define GST_TYPE_DECKLINK_SINK (gst_decklink_sink_get_type()) #define GST_TYPE_DECKLINK_SINK (gst_decklink_sink_get_type())
#define GST_DECKLINK_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DECKLINK_SINK,GstDecklinkSink)) #define GST_DECKLINK_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DECKLINK_SINK,GstDecklinkSink))
#define GST_DECKLINK_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DECKLINK_SINK,GstDecklinkSinkClass)) #define GST_DECKLINK_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DECKLINK_SINK,GstDecklinkSinkClass))
#define GST_DECKLINK_SINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_DECKLINK_SINK, GstDecklinkSinkClass))
#define GST_IS_DECKLINK_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DECKLINK_SINK)) #define GST_IS_DECKLINK_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DECKLINK_SINK))
#define GST_IS_DECKLINK_SINK_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DECKLINK_SINK)) #define GST_IS_DECKLINK_SINK_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DECKLINK_SINK))
@ -57,10 +58,10 @@ struct _GstDecklinkSink
GstPad *videosinkpad; GstPad *videosinkpad;
GstPad *audiosinkpad; GstPad *audiosinkpad;
GMutex *mutex; GMutex mutex;
GCond *cond; GCond cond;
GMutex *audio_mutex; GMutex audio_mutex;
GCond *audio_cond; GCond audio_cond;
int queued_frames; int queued_frames;
gboolean stop; gboolean stop;
gboolean video_eos; gboolean video_eos;
@ -84,11 +85,11 @@ struct _GstDecklinkSink
#ifdef _MSC_VER #ifdef _MSC_VER
gboolean comInitialized; gboolean comInitialized;
GMutex *com_init_lock; GMutex com_init_lock;
GMutex *com_deinit_lock; GMutex com_deinit_lock;
GCond *com_initialized; GCond com_initialized;
GCond *com_uninitialize; GCond com_uninitialize;
GCond *com_uninitialized; GCond com_uninitialized;
#endif /* _MSC_VER */ #endif /* _MSC_VER */
}; };