mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
rtsp-latency-bin: replace G_TYPE_INSTANCE_GET_PRIVATE as it's been deprecated
from glib ``` Deprecated: 2.58: Use %G_ADD_PRIVATE and the generated `your_type_get_instance_private()` function instead ```
This commit is contained in:
parent
aa8126b239
commit
b4948f69a0
1 changed files with 3 additions and 6 deletions
|
@ -23,9 +23,6 @@
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
#include "rtsp-latency-bin.h"
|
#include "rtsp-latency-bin.h"
|
||||||
|
|
||||||
#define GST_RTSP_LATENCY_BIN_GET_PRIVATE(obj) \
|
|
||||||
(G_TYPE_INSTANCE_GET_PRIVATE ((obj), GST_RTSP_LATENCY_BIN_TYPE, GstRTSPLatencyBinPrivate))
|
|
||||||
|
|
||||||
struct _GstRTSPLatencyBinPrivate
|
struct _GstRTSPLatencyBinPrivate
|
||||||
{
|
{
|
||||||
GstPad *sinkpad;
|
GstPad *sinkpad;
|
||||||
|
@ -106,7 +103,7 @@ gst_rtsp_latency_bin_get_property (GObject * object, guint propid,
|
||||||
{
|
{
|
||||||
GstRTSPLatencyBin *latency_bin = GST_RTSP_LATENCY_BIN (object);
|
GstRTSPLatencyBin *latency_bin = GST_RTSP_LATENCY_BIN (object);
|
||||||
GstRTSPLatencyBinPrivate *priv =
|
GstRTSPLatencyBinPrivate *priv =
|
||||||
GST_RTSP_LATENCY_BIN_GET_PRIVATE (latency_bin);
|
gst_rtsp_latency_bin_get_instance_private (latency_bin);
|
||||||
|
|
||||||
switch (propid) {
|
switch (propid) {
|
||||||
case PROP_ELEMENT:
|
case PROP_ELEMENT:
|
||||||
|
@ -140,7 +137,7 @@ gst_rtsp_latency_bin_add_element (GstRTSPLatencyBin * latency_bin,
|
||||||
GstElement * element)
|
GstElement * element)
|
||||||
{
|
{
|
||||||
GstRTSPLatencyBinPrivate *priv =
|
GstRTSPLatencyBinPrivate *priv =
|
||||||
GST_RTSP_LATENCY_BIN_GET_PRIVATE (latency_bin);
|
gst_rtsp_latency_bin_get_instance_private (latency_bin);
|
||||||
GstPad *pad;
|
GstPad *pad;
|
||||||
GstPadTemplate *templ;
|
GstPadTemplate *templ;
|
||||||
|
|
||||||
|
@ -250,7 +247,7 @@ static gboolean
|
||||||
gst_rtsp_latency_bin_recalculate_latency (GstRTSPLatencyBin * latency_bin)
|
gst_rtsp_latency_bin_recalculate_latency (GstRTSPLatencyBin * latency_bin)
|
||||||
{
|
{
|
||||||
GstRTSPLatencyBinPrivate *priv =
|
GstRTSPLatencyBinPrivate *priv =
|
||||||
GST_RTSP_LATENCY_BIN_GET_PRIVATE (latency_bin);
|
gst_rtsp_latency_bin_get_instance_private (latency_bin);
|
||||||
GstEvent *latency;
|
GstEvent *latency;
|
||||||
GstQuery *query;
|
GstQuery *query;
|
||||||
GstClockTime min_latency;
|
GstClockTime min_latency;
|
||||||
|
|
Loading…
Reference in a new issue