mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
decklink: Remove some dead code
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1721>
This commit is contained in:
parent
c6aca271a1
commit
1ea2796cfc
1 changed files with 0 additions and 36 deletions
|
@ -887,10 +887,6 @@ struct _Device
|
||||||
ProfileSetOperationResult gst_decklink_configure_profile (Device * device,
|
ProfileSetOperationResult gst_decklink_configure_profile (Device * device,
|
||||||
BMDProfileID profile_id);
|
BMDProfileID profile_id);
|
||||||
|
|
||||||
Device *gst_decklink_find_device_by_persistent_id (int64_t persistent_id);
|
|
||||||
gboolean gst_decklink_device_has_persistent_id (Device * device,
|
|
||||||
int64_t persistent_id);
|
|
||||||
|
|
||||||
class GStreamerDecklinkInputCallback:public IDeckLinkInputCallback
|
class GStreamerDecklinkInputCallback:public IDeckLinkInputCallback
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
@ -1866,38 +1862,6 @@ gst_decklink_configure_profile (Device * device, BMDProfileID profile_id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
|
||||||
gst_decklink_device_has_persistent_id (Device * device, int64_t persistent_id)
|
|
||||||
{
|
|
||||||
HRESULT result;
|
|
||||||
int64_t this_device_persistent_id;
|
|
||||||
|
|
||||||
GstDecklinkInput *input = &device->input;
|
|
||||||
|
|
||||||
result =
|
|
||||||
input->attributes->GetInt (BMDDeckLinkPersistentID,
|
|
||||||
&this_device_persistent_id);
|
|
||||||
return (result == S_OK) && (this_device_persistent_id == persistent_id);
|
|
||||||
}
|
|
||||||
|
|
||||||
Device *
|
|
||||||
gst_decklink_find_device_by_persistent_id (int64_t persistent_id)
|
|
||||||
{
|
|
||||||
GST_DEBUG ("Searching Device by persistent ID %" G_GINT64_FORMAT,
|
|
||||||
(gint64) persistent_id);
|
|
||||||
|
|
||||||
for (guint index = 0; index < devices->len; index++) {
|
|
||||||
Device *device = (Device *) g_ptr_array_index (devices, index);
|
|
||||||
|
|
||||||
if (gst_decklink_device_has_persistent_id (device, persistent_id)) {
|
|
||||||
GST_DEBUG ("Found matching Device %u", index);
|
|
||||||
return device;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
G_DEFINE_TYPE (GstDecklinkClock, gst_decklink_clock, GST_TYPE_SYSTEM_CLOCK);
|
G_DEFINE_TYPE (GstDecklinkClock, gst_decklink_clock, GST_TYPE_SYSTEM_CLOCK);
|
||||||
|
|
||||||
static GstClockTime gst_decklink_clock_get_internal_time (GstClock * clock);
|
static GstClockTime gst_decklink_clock_get_internal_time (GstClock * clock);
|
||||||
|
|
Loading…
Reference in a new issue