mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
TrackVideoTransition: Fix after merge
This commit is contained in:
parent
622cb2ac76
commit
c6d71ed335
1 changed files with 9 additions and 5 deletions
|
@ -183,13 +183,17 @@ ges_track_video_transition_set_property (GObject * object,
|
|||
static void
|
||||
on_caps_set (GstPad * srca_pad, GParamSpec * pspec, GstElement * capsfilt)
|
||||
{
|
||||
gint width, height;
|
||||
const GstStructure *str;
|
||||
GstCaps *size_caps = NULL;
|
||||
GstCaps *orig_caps;
|
||||
|
||||
orig_caps = gst_pad_get_caps (srca_pad, NULL);
|
||||
|
||||
if (orig_caps) {
|
||||
gint width, height;
|
||||
const GstStructure *str;
|
||||
GstCaps *size_caps;
|
||||
|
||||
if (GST_PAD_CAPS (srca_pad)) {
|
||||
/* Get width and height of first video */
|
||||
str = gst_caps_get_structure (GST_PAD_CAPS (srca_pad), 0);
|
||||
str = gst_caps_get_structure (orig_caps, 0);
|
||||
gst_structure_get_int (str, "width", &width);
|
||||
gst_structure_get_int (str, "height", &height);
|
||||
|
||||
|
|
Loading…
Reference in a new issue