ROS Visual odometry

I met the problem that gscam didn’t stream anything. It’s blocked in the line ’ GstSample* sample = gst_app_sink_pull_sample(GST_APP_SINK(sink_));’ Have you ever meet the problem? I will be really grateful if you have some idea.