Fix gstreamer-0.10 pad iter

This commit is contained in:
dabrain34 2016-12-11 21:42:20 +01:00
parent f03206c615
commit d6b94cb94a

View file

@ -211,13 +211,13 @@ std::vector <ElementInfo> GraphManager::GetInfo()
{ {
#if GST_VERSION_MAJOR >= 1 #if GST_VERSION_MAJOR >= 1
GValue padVal = { 0 }; GValue padVal = { 0 };
switch (gst_iterator_next (padItr, &padVal)) switch (gst_iterator_next (padItr, &padVal))
{ {
case GST_ITERATOR_OK: case GST_ITERATOR_OK:
{ {
pad = GST_PAD(g_value_get_object(&padVal)); pad = GST_PAD(g_value_get_object(&padVal));
#else #else
switch (gst_iterator_next (iter, (gpointer *)&pad)) switch (gst_iterator_next (padItr, (gpointer *)&pad))
{ {
case GST_ITERATOR_OK: case GST_ITERATOR_OK:
{ {